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 @@ ...@@ -3,6 +3,4 @@
sudo: True sudo: True
gather_facts: True gather_facts: True
roles: roles:
- common
- supervisor
- certs - certs
...@@ -3,5 +3,4 @@ ...@@ -3,5 +3,4 @@
sudo: True sudo: True
gather_facts: True gather_facts: True
roles: roles:
- gh_users
- common - common
...@@ -3,6 +3,4 @@ ...@@ -3,6 +3,4 @@
sudo: True sudo: True
gather_facts: True gather_facts: True
roles: roles:
- common
- supervisor
- devpi - devpi
...@@ -3,6 +3,4 @@ ...@@ -3,6 +3,4 @@
sudo: True sudo: True
gather_facts: True gather_facts: True
roles: roles:
- common
- supervisor
- discern - discern
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
migrate_db: "yes" migrate_db: "yes"
openid_workaround: True openid_workaround: True
roles: roles:
- common
- role: nginx - role: nginx
nginx_sites: nginx_sites:
- cms - cms
...@@ -16,7 +15,6 @@ ...@@ -16,7 +15,6 @@
- xqueue - xqueue
- xserver - xserver
- edxlocal - edxlocal
- supervisor
- mongo - mongo
- edxapp - edxapp
- role: demo - role: demo
......
...@@ -3,6 +3,4 @@ ...@@ -3,6 +3,4 @@
sudo: True sudo: True
gather_facts: True gather_facts: True
roles: roles:
- common
- supervisor
- edxapp - edxapp
...@@ -3,6 +3,4 @@ ...@@ -3,6 +3,4 @@
sudo: True sudo: True
gather_facts: True gather_facts: True
roles: roles:
- common
- supervisor
- forum - forum
...@@ -3,6 +3,4 @@ ...@@ -3,6 +3,4 @@
sudo: True sudo: True
gather_facts: True gather_facts: True
roles: roles:
- common
- supervisor
- ora - ora
...@@ -3,7 +3,4 @@ ...@@ -3,7 +3,4 @@
sudo: True sudo: True
gather_facts: True gather_facts: True
roles: roles:
- common
- supervisor
- role: xqueue - role: xqueue
tags: ['xqueue']
...@@ -3,7 +3,4 @@ ...@@ -3,7 +3,4 @@
sudo: True sudo: True
gather_facts: True gather_facts: True
roles: roles:
- common
- supervisor
- role: xserver - role: xserver
tags: ['xserver']
dependencies:
- common
- supervisor
--- ---
dependencies: dependencies:
- common
- role: supervisor - role: supervisor
supervisor_app_dir: "{{ devpi_supervisor_app_dir }}" supervisor_app_dir: "{{ devpi_supervisor_app_dir }}"
supervisor_data_dir: "{{ devpi_supervisor_data_dir }}" supervisor_data_dir: "{{ devpi_supervisor_data_dir }}"
......
---
dependencies:
- common
- supervisor
--- ---
dependencies: dependencies:
- common
- supervisor
- role: rbenv - role: rbenv
rbenv_user: "{{ edxapp_user }}" rbenv_user: "{{ edxapp_user }}"
rbenv_dir: "{{ edxapp_app_dir }}" rbenv_dir: "{{ edxapp_app_dir }}"
......
--- ---
dependencies: dependencies:
- common
- supervisor
- role: rbenv - role: rbenv
# TODO: setting the rbenv ownership to # TODO: setting the rbenv ownership to
# the common_web_user is a workaround # the common_web_user is a workaround
......
---
dependencies:
- common
---
dependencies:
- common
---
dependencies:
- common
- supervisor
---
dependencies:
- common
- supervisor
---
dependencies:
- common
- supervisor
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
vars_files: vars_files:
- "group_vars/all" - "group_vars/all"
roles: roles:
- common
- edxlocal - edxlocal
- mongo - mongo
- edxapp - edxapp
......
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
- "group_vars/all" - "group_vars/all"
roles: roles:
- gh_users - gh_users
- common
- role: nginx - role: nginx
nginx_sites: nginx_sites:
- cms - cms
...@@ -19,7 +18,6 @@ ...@@ -19,7 +18,6 @@
- ora - ora
- xqueue - xqueue
- edxlocal - edxlocal
- supervisor
- mongo - mongo
- edxapp - edxapp
- demo - demo
......
...@@ -8,13 +8,11 @@ ...@@ -8,13 +8,11 @@
vars_files: vars_files:
- "group_vars/all" - "group_vars/all"
roles: roles:
- common
- role: nginx - role: nginx
nginx_sites: nginx_sites:
- lms - lms
- cms - cms
- lms-preview - lms-preview
- edxlocal - edxlocal
- supervisor
- mongo - mongo
- { role: 'edxapp', EDXAPP_LMS_NGINX_PORT: 18030, EDXAPP_LMS_XML_NGINX_PORT: 80 } - { role: 'edxapp', EDXAPP_LMS_NGINX_PORT: 18030, EDXAPP_LMS_XML_NGINX_PORT: 80 }
...@@ -8,14 +8,12 @@ ...@@ -8,14 +8,12 @@
vars_files: vars_files:
- "group_vars/all" - "group_vars/all"
roles: roles:
- common
- role: nginx - role: nginx
nginx_sites: nginx_sites:
- lms - lms
- cms - cms
- lms-preview - lms-preview
- edxlocal - edxlocal
- supervisor
- mongo - mongo
- edxapp - edxapp
- oraclejdk - oraclejdk
......
...@@ -119,7 +119,7 @@ EOF ...@@ -119,7 +119,7 @@ EOF
if [[ $server_type == "full_edx_installation" ]]; then if [[ $server_type == "full_edx_installation" ]]; then
# additional tasks that need to be run if the # additional tasks that need to be run if the
# entire edx stack is brought up from an AMI # 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 ansible-playbook restart_supervisor.yml -i "${deploy_host}," -e "@${extra_vars}" --user ubuntu
fi fi
fi fi
...@@ -143,7 +143,7 @@ fi ...@@ -143,7 +143,7 @@ fi
# Run deploy tasks for the roles selected # Run deploy tasks for the roles selected
for i in "${!deploy[@]}"; do for i in "${!deploy[@]}"; do
if [[ ${deploy[$i]} == "true" ]]; then 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 fi
done 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