Commit c59e6e72 by John Jarvis

renaming {edxapp,forum}_skip_supervisor to devstack

parent 2b30cc97
...@@ -459,4 +459,4 @@ worker_django_settings_module: 'aws' ...@@ -459,4 +459,4 @@ worker_django_settings_module: 'aws'
# Skip supervisor tasks # Skip supervisor tasks
# Useful when supervisor is not installed (local dev) # Useful when supervisor is not installed (local dev)
edxapp_skip_supervisor: False devstack: False
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
supervisorctl_path={{ supervisor_ctl }} supervisorctl_path={{ supervisor_ctl }}
config={{ supervisor_cfg }} config={{ supervisor_cfg }}
name="edxapp:{{ item }}" name="edxapp:{{ item }}"
when: not edxapp_skip_supervisor when: not devstack
sudo_user: "{{ supervisor_service_user }}" sudo_user: "{{ supervisor_service_user }}"
with_items: service_variants_enabled with_items: service_variants_enabled
tags: deploy tags: deploy
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
supervisorctl_path={{ supervisor_ctl }} supervisorctl_path={{ supervisor_ctl }}
config={{ supervisor_cfg }} config={{ supervisor_cfg }}
state=restarted state=restarted
when: celery_worker is defined and not edxapp_skip_supervisor when: celery_worker is defined and not devstack
with_items: edxapp_workers with_items: edxapp_workers
sudo_user: "{{ common_web_user }}" sudo_user: "{{ common_web_user }}"
tags: deploy tags: deploy
...@@ -227,7 +227,7 @@ ...@@ -227,7 +227,7 @@
register: supervisor_update register: supervisor_update
sudo_user: "{{ supervisor_service_user }}" sudo_user: "{{ supervisor_service_user }}"
changed_when: supervisor_update.stdout != "" changed_when: supervisor_update.stdout != ""
when: not edxapp_skip_supervisor when: not devstack
tags: deploy tags: deploy
- name: edxapp | ensure edxapp has started - name: edxapp | ensure edxapp has started
...@@ -237,7 +237,7 @@ ...@@ -237,7 +237,7 @@
config={{ supervisor_cfg }} config={{ supervisor_cfg }}
name="edxapp:{{ item }}" name="edxapp:{{ item }}"
sudo_user: "{{ supervisor_service_user }}" sudo_user: "{{ supervisor_service_user }}"
when: not edxapp_skip_supervisor when: not devstack
with_items: service_variants_enabled with_items: service_variants_enabled
tags: deploy tags: deploy
...@@ -247,7 +247,7 @@ ...@@ -247,7 +247,7 @@
supervisorctl_path={{ supervisor_ctl }} supervisorctl_path={{ supervisor_ctl }}
config={{ supervisor_cfg }} config={{ supervisor_cfg }}
state=started state=started
when: celery_worker is defined and not edxapp_skip_supervisor when: celery_worker is defined and not devstack
with_items: edxapp_workers with_items: edxapp_workers
sudo_user: "{{ supervisor_service_user }}" sudo_user: "{{ supervisor_service_user }}"
tags: deploy tags: deploy
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
src={{ item }}.conf.j2 dest={{ supervisor_cfg_dir }}/{{ item }}.conf src={{ item }}.conf.j2 dest={{ supervisor_cfg_dir }}/{{ item }}.conf
owner={{ supervisor_user }} owner={{ supervisor_user }}
with_items: service_variants_enabled with_items: service_variants_enabled
when: celery_worker is not defined and not edxapp_skip_supervisor when: celery_worker is not defined and not devstack
sudo_user: "{{ supervisor_user }}" sudo_user: "{{ supervisor_user }}"
tags: tags:
- deploy - deploy
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
template: > template: >
src=edxapp.conf.j2 dest={{ supervisor_cfg_dir }}/edxapp.conf src=edxapp.conf.j2 dest={{ supervisor_cfg_dir }}/edxapp.conf
owner={{ supervisor_user }} owner={{ supervisor_user }}
when: celery_worker is not defined and not edxapp_skip_supervisor when: celery_worker is not defined and not devstack
sudo_user: "{{ supervisor_user }}" sudo_user: "{{ supervisor_user }}"
tags: tags:
- deploy - deploy
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
template: > template: >
src=workers.conf.j2 dest={{ supervisor_cfg_dir }}/workers.conf src=workers.conf.j2 dest={{ supervisor_cfg_dir }}/workers.conf
owner={{ supervisor_user }} owner={{ supervisor_user }}
when: celery_worker is defined and not edxapp_skip_supervisor when: celery_worker is defined and not devstack
sudo_user: "{{ supervisor_user }}" sudo_user: "{{ supervisor_user }}"
tags: tags:
- deploy - deploy
......
...@@ -60,4 +60,4 @@ forum_services: ...@@ -60,4 +60,4 @@ forum_services:
# Skip supervisor tasks # Skip supervisor tasks
# Used in local dev where supervisor isn't installed # Used in local dev where supervisor isn't installed
forum_skip_supervisor: False devstack: False
...@@ -5,5 +5,5 @@ ...@@ -5,5 +5,5 @@
supervisorctl_path={{ supervisor_ctl }} supervisorctl_path={{ supervisor_ctl }}
config={{ supervisor_cfg }} config={{ supervisor_cfg }}
state=restarted state=restarted
when: not forum_skip_supervisor when: not devstack
tags: deploy tags: deploy
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
owner={{ supervisor_user }} owner={{ supervisor_user }}
mode=0644 mode=0644
sudo_user: "{{ supervisor_user }}" sudo_user: "{{ supervisor_user }}"
when: not forum_skip_supervisor when: not devstack
register: forum_supervisor register: forum_supervisor
tags: deploy tags: deploy
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
dest={{ forum_supervisor_wrapper }} dest={{ forum_supervisor_wrapper }}
mode=0755 mode=0755
sudo_user: "{{ forum_user }}" sudo_user: "{{ forum_user }}"
when: not forum_skip_supervisor when: not devstack
notify: forum | restart the forum service notify: forum | restart the forum service
tags: deploy tags: deploy
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
shell: "{{ supervisor_ctl }} -c {{ supervisor_cfg }} update" shell: "{{ supervisor_ctl }} -c {{ supervisor_cfg }} update"
register: supervisor_update register: supervisor_update
changed_when: supervisor_update.stdout != "" changed_when: supervisor_update.stdout != ""
when: not forum_skip_supervisor when: not devstack
tags: deploy tags: deploy
- name: forum | ensure forum is started - name: forum | ensure forum is started
...@@ -54,5 +54,5 @@ ...@@ -54,5 +54,5 @@
supervisorctl_path={{ supervisor_ctl }} supervisorctl_path={{ supervisor_ctl }}
config={{ supervisor_cfg }} config={{ supervisor_cfg }}
state=started state=started
when: not forum_skip_supervisor when: not devstack
tags: deploy tags: deploy
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
- name: forum | test that the required service are listening - name: forum | test that the required service are listening
wait_for: port={{ item.port }} host={{ item.host }} timeout=30 wait_for: port={{ item.port }} host={{ item.host }} timeout=30
with_items: "{{ forum_services }}" with_items: "{{ forum_services }}"
when: not forum_skip_supervisor when: not devstack
tags: tags:
- forum - forum
- test - test
...@@ -5,8 +5,7 @@ ...@@ -5,8 +5,7 @@
vars: vars:
migrate_db: "yes" migrate_db: "yes"
openid_workaround: True openid_workaround: True
edxapp_skip_supervisor: True devstack: True
forum_skip_supervisor: True
edx_platform_commit: 'master' edx_platform_commit: 'master'
vars_files: vars_files:
- "group_vars/all" - "group_vars/all"
......
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