Skip to content

Commit 4fb6a72

Browse files
committed
(WIP) setup openedx platform
1 parent 2623cee commit 4fb6a72

3 files changed

Lines changed: 77 additions & 8 deletions

File tree

ansible/roles.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
---
22
- hosts: all
33
roles:
4-
- { role: external_data_drive, when: external_data_drive__enabled }
5-
- { role: users, when: users__enabled }
6-
- { role: apt_basic, when: apt_basic__enabled }
7-
- { role: apt_localrepo, when: apt_localrepo__enabled }
8-
- { role: desktop, when: desktop__enabled }
9-
- { role: kalite, when: kalite__enabled }
10-
- { role: wikipedia, when: wikipedia__enabled }
4+
# - { role: external_data_drive, when: external_data_drive__enabled }
5+
# - { role: users, when: users__enabled }
6+
# - { role: apt_basic, when: apt_basic__enabled }
7+
# - { role: apt_localrepo, when: apt_localrepo__enabled }
8+
# - { role: desktop, when: desktop__enabled }
9+
- { role: openedx, when: openedx__enabled }
10+
# - { role: kalite, when: kalite__enabled }
11+
# - { role: wikipedia, when: wikipedia__enabled }
1112

1213
# Always run this one last, since it will build the ISO
13-
- { role: build_iso, when: build_iso__enabled }
14+
# - { role: build_iso, when: build_iso__enabled }
1415

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
- name: Install system apt pre-requisites
3+
apt: name={{ item }} state=installed
4+
with_items:
5+
- build-essential
6+
- software-properties-common
7+
- python-software-properties
8+
- curl
9+
- git-core
10+
- libxml2-dev
11+
- libxslt1-dev
12+
- python-pip
13+
- python-apt
14+
- python-dev
15+
16+
- name: Install system pip pre-requisites
17+
pip: name={{ item }} state=latest
18+
with_items:
19+
- pip
20+
- virtualenv
21+
22+
- name: checkout edx configuration repo
23+
git: >
24+
dest="/var/tmp/configuration" repo="{{ openedx__conf_repo }}"
25+
version="{{ openedx__version }}" accept_hostkey=yes
26+
# sudo_user: "ubuntu"
27+
28+
29+
- name: Adding alias to /etc/hosts
30+
lineinfile: dest=/etc/hosts line="127.0.0.1 openedx"
31+
32+
- name: Install the ansible requirements
33+
pip: requirements=/var/tmp/configuration/requirements.txt
34+
35+
- name: Run the edx_sandbox.yml playbook
36+
command: sudo ansible-playbook -c local /var/tmp/configuration/playbooks/{{ openedx__playbook }} -i "localhost,"
37+
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
openedx__enabled: true
3+
openedx__conf_repo: "https://github.com/edx/configuration"
4+
openedx__version: "openedx/rc/aspen-2014-09-10"
5+
openedx__playbook: "vagrant-devstack.yml"
6+
7+
# vagrant-devstack.yml include :
8+
# edx_ansible
9+
# edxlocal
10+
# mongo
11+
# edxapp
12+
# oraclejdk
13+
# elasticsearch
14+
# forum
15+
16+
# vagrant-fullstack.yml include :
17+
# edx_ansible
18+
# user
19+
# nginx
20+
# edxlocal
21+
# mongo
22+
# celery_worker
23+
# edxapp
24+
# demo
25+
# rabbitmq
26+
# oraclejdk
27+
# elasticsearch
28+
# forum
29+
# xqueue
30+
# ora
31+
# certs

0 commit comments

Comments
 (0)