Commit bda05424 by John Jarvis

using role dependencies for common/supervisor

Also renaming the deploy_* plays to the play name
parent d1e31e71
......@@ -3,6 +3,4 @@
sudo: True
gather_facts: True
roles:
- common
- supervisor
- certs
......@@ -3,5 +3,4 @@
sudo: True
gather_facts: True
roles:
- gh_users
- common
......@@ -3,6 +3,4 @@
sudo: True
gather_facts: True
roles:
- common
- supervisor
- devpi
......@@ -3,6 +3,4 @@
sudo: True
gather_facts: True
roles:
- common
- supervisor
- discern
......@@ -7,7 +7,6 @@
migrate_db: "yes"
openid_workaround: True
roles:
- common
- role: nginx
nginx_sites:
- cms
......@@ -16,7 +15,6 @@
- xqueue
- xserver
- edxlocal
- supervisor
- mongo
- edxapp
- role: demo
......
......@@ -3,6 +3,4 @@
sudo: True
gather_facts: True
roles:
- common
- supervisor
- edxapp
......@@ -3,6 +3,4 @@
sudo: True
gather_facts: True
roles:
- common
- supervisor
- forum
......@@ -3,6 +3,4 @@
sudo: True
gather_facts: True
roles:
- common
- supervisor
- ora
......@@ -3,7 +3,4 @@
sudo: True
gather_facts: True
roles:
- common
- supervisor
- role: xqueue
tags: ['xqueue']
......@@ -3,7 +3,4 @@
sudo: True
gather_facts: True
roles:
- common
- supervisor
- role: xserver
tags: ['xserver']
dependencies:
- common
- supervisor
---
dependencies:
- common
- role: supervisor
supervisor_app_dir: "{{ devpi_supervisor_app_dir }}"
supervisor_data_dir: "{{ devpi_supervisor_data_dir }}"
......
---
dependencies:
- common
- supervisor
---
dependencies:
- common
- supervisor
- role: rbenv
rbenv_user: "{{ edxapp_user }}"
rbenv_dir: "{{ edxapp_app_dir }}"
......
---
dependencies:
- common
- supervisor
- role: rbenv
# TODO: setting the rbenv ownership to
# the common_web_user is a workaround
......
---
dependencies:
- common
---
dependencies:
- common
---
dependencies:
- common
- supervisor
---
dependencies:
- common
- supervisor
---
dependencies:
- common
- supervisor
......@@ -11,7 +11,6 @@
vars_files:
- "group_vars/all"
roles:
- common
- edxlocal
- mongo
- edxapp
......
......@@ -11,7 +11,6 @@
- "group_vars/all"
roles:
- gh_users
- common
- role: nginx
nginx_sites:
- cms
......@@ -19,7 +18,6 @@
- ora
- xqueue
- edxlocal
- supervisor
- mongo
- edxapp
- demo
......
......@@ -8,13 +8,11 @@
vars_files:
- "group_vars/all"
roles:
- common
- role: nginx
nginx_sites:
- lms
- cms
- lms-preview
- edxlocal
- supervisor
- mongo
- { role: 'edxapp', EDXAPP_LMS_NGINX_PORT: 18030, EDXAPP_LMS_XML_NGINX_PORT: 80 }
......@@ -8,14 +8,12 @@
vars_files:
- "group_vars/all"
roles:
- common
- role: nginx
nginx_sites:
- lms
- cms
- lms-preview
- edxlocal
- supervisor
- mongo
- edxapp
- oraclejdk
......
......@@ -119,7 +119,7 @@ EOF
if [[ $server_type == "full_edx_installation" ]]; then
# additional tasks that need to be run if the
# entire edx stack is brought up from an AMI
ansible-playbook deploy_rabbitmq.yml -i "${deploy_host}," -e "@${extra_vars}" --user ubuntu
ansible-playbook rabbitmq.yml -i "${deploy_host}," -e "@${extra_vars}" --user ubuntu
ansible-playbook restart_supervisor.yml -i "${deploy_host}," -e "@${extra_vars}" --user ubuntu
fi
fi
......@@ -143,7 +143,7 @@ fi
# Run deploy tasks for the roles selected
for i in "${!deploy[@]}"; do
if [[ ${deploy[$i]} == "true" ]]; then
ansible-playbook deploy_${i}.yml -i "${deploy_host}," -e "@${extra_vars}" --user ubuntu --tags deploy
ansible-playbook ${i}.yml -i "${deploy_host}," -e "@${extra_vars}" --user ubuntu --tags deploy
fi
done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment