Commit 1433a5ab by Xavier Antoviaque

supervisor-ora: Rename service names & config from `edx-ora` to `ora`

parent 28fbbd18
--- ---
- name: ora | restart edx-ora - name: ora | restart ora
service: name=edx-ora state=restarted supervisorctl: >
- name: ora | restart edx-ora-celery name=ora
service: name=edx-ora-celery state=restarted supervisorctl_path={{ supervisor_ctl }}
config={{ supervisor_cfg }}
state=restarted
- name: ora | restart ora_celery
supervisorctl: >
name=ora_celery
supervisorctl_path={{ supervisor_ctl }}
config={{ supervisor_cfg }}
state=restarted
- include: ease.yml - include: ease.yml
- name: ora | See if edx-ora.conf is installed - name: ora | See if supervisord config file `ora.conf` is installed
shell: "[ -f /etc/init/edx-ora.conf ] && echo 'Found' || echo ''" shell: "[ -f {{ supervisor_cfg_dir }}/ora.conf ] && echo 'Found' || echo ''"
register: edx_ora_installed register: ora_installed
tags: tags:
- deploy - deploy
- name: ora | See if edx-ora-celery.conf is installed - name: ora | See if supervisord `ora_celery.conf` is installed
shell: "[ -f /etc/init/edx-ora-celery.conf ] && echo 'Found' || echo ''" shell: "[ -f {{ supervisor_cfg_dir }}/ora_celery.conf ] && echo 'Found' || echo ''"
register: edx_ora_celery_installed register: ora_celery_installed
tags: tags:
- deploy - deploy
# Stop ora service. # Stop ora service.
- name: ora | stop edx-ora service - name: ora | stop ora service
service: name=edx-ora state=stopped service: name=edx-ora state=stopped
when: edx_ora_installed.stdout == 'Found' when: ora_installed.stdout == 'Found'
notify: ora | restart edx-ora notify: ora | restart ora
tags: tags:
- deploy - deploy
- name: ora | stop edx-ora-celery service - name: ora | stop ora_celery service
service: name=edx-ora-celery state=stopped service: name=ora_celery state=stopped
when: edx_ora_celery_installed.stdout == 'Found' when: ora_celery_installed.stdout == 'Found'
notify: ora | restart edx-ora-celery notify: ora | restart ora_celery
tags: tags:
- deploy - deploy
...@@ -41,12 +41,12 @@ ...@@ -41,12 +41,12 @@
- deploy - deploy
- name: ora | create ora upstart script - name: ora | create ora upstart script
template: src=edx-ora.conf.j2 dest=/etc/init/edx-ora.conf template: src=ora.conf.j2 dest=/etc/init/ora.conf
tags: tags:
- deploy - deploy
- name: ora | create ora-celery upstart script - name: ora | create ora_celery upstart script
template: src=edx-ora-celery.conf.j2 dest=/etc/init/edx-ora-celery.conf template: src=ora_celery.conf.j2 dest=/etc/init/ora_celery.conf
tags: tags:
- deploy - deploy
...@@ -55,8 +55,8 @@ ...@@ -55,8 +55,8 @@
git: dest={{ ora_code_dir }} repo={{ ora_source_repo }} version={{ ora_version }} git: dest={{ ora_code_dir }} repo={{ ora_source_repo }} version={{ ora_version }}
sudo_user: "{{ ora_user }}" sudo_user: "{{ ora_user }}"
notify: notify:
- ora | restart edx-ora - ora | restart ora
- ora | restart edx-ora-celery - ora | restart ora_celery
tags: tags:
- deploy - deploy
...@@ -69,8 +69,8 @@ ...@@ -69,8 +69,8 @@
pip: requirements="{{ ora_pre_requirements_file }}" virtualenv="{{ ora_venv_dir }}" state=present pip: requirements="{{ ora_pre_requirements_file }}" virtualenv="{{ ora_venv_dir }}" state=present
sudo_user: "{{ ora_user }}" sudo_user: "{{ ora_user }}"
notify: notify:
- ora | restart edx-ora - ora | restart ora
- ora | restart edx-ora-celery - ora | restart ora_celery
tags: tags:
- deploy - deploy
...@@ -79,8 +79,8 @@ ...@@ -79,8 +79,8 @@
pip: requirements="{{ ora_post_requirements_file }}" virtualenv="{{ ora_venv_dir }}" state=present pip: requirements="{{ ora_post_requirements_file }}" virtualenv="{{ ora_venv_dir }}" state=present
sudo_user: "{{ ora_user }}" sudo_user: "{{ ora_user }}"
notify: notify:
- ora | restart edx-ora - ora | restart ora
- ora | restart edx-ora-celery - ora | restart ora_celery
tags: tags:
- deploy - deploy
...@@ -88,8 +88,8 @@ ...@@ -88,8 +88,8 @@
- name: ora | change memory commit settings -- needed for redis - name: ora | change memory commit settings -- needed for redis
command: sysctl vm.overcommit_memory=1 command: sysctl vm.overcommit_memory=1
notify: notify:
- ora | restart edx-ora - ora | restart ora
- ora | restart edx-ora-celery - ora | restart ora_celery
tags: tags:
- deploy - deploy
...@@ -98,8 +98,8 @@ ...@@ -98,8 +98,8 @@
when: migrate_db is defined and migrate_db|lower == "yes" when: migrate_db is defined and migrate_db|lower == "yes"
sudo_user: "{{ ora_user }}" sudo_user: "{{ ora_user }}"
notify: notify:
- ora | restart edx-ora - ora | restart ora
- ora | restart edx-ora-celery - ora | restart ora_celery
tags: tags:
- deploy - deploy
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
shell: SERVICE_VARIANT=ora {{ora_venv_dir}}/bin/django-admin.py update_users --settings=edx_ora.aws --pythonpath={{ora_code_dir}} shell: SERVICE_VARIANT=ora {{ora_venv_dir}}/bin/django-admin.py update_users --settings=edx_ora.aws --pythonpath={{ora_code_dir}}
sudo_user: "{{ ora_user }}" sudo_user: "{{ ora_user }}"
notify: notify:
- ora | restart edx-ora - ora | restart ora
- ora | restart edx-ora-celery - ora | restart ora_celery
tags: tags:
- deploy - deploy
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