Commit 415702a6 by e0d

working changes for new supervisor scheme.

parent e95ef117
...@@ -38,7 +38,7 @@ NOTIFIER_USER_SERVICE_HTTP_AUTH_USER: "guido" ...@@ -38,7 +38,7 @@ NOTIFIER_USER_SERVICE_HTTP_AUTH_USER: "guido"
NOTIFIER_USER_SERVICE_HTTP_AUTH_PASS: "vanrossum" NOTIFIER_USER_SERVICE_HTTP_AUTH_PASS: "vanrossum"
NOTIFIER_CELERY_BROKER_URL: "django://" NOTIFIER_CELERY_BROKER_URL: "django://"
NOTIFIER_SUPERVISOR_LOG_DEST: "{{ COMMON_DATA_DIR }}/logs/supervisor" NOTIFIER_SUPERVISOR_LOG_DEST: "{{ COMMON_DATA_DIR }}/log/supervisor"
NOTIFER_REQUESTS_CA_BUNDLE: "/etc/ssl/certs/ca-certificates.crt" NOTIFER_REQUESTS_CA_BUNDLE: "/etc/ssl/certs/ca-certificates.crt"
...@@ -53,7 +53,6 @@ notifier_debian_pkgs: ...@@ -53,7 +53,6 @@ notifier_debian_pkgs:
- ipython - ipython
- pkg-config - pkg-config
- rsyslog - rsyslog
- supervisor
# #
# This structure is iterated over in order to build both # This structure is iterated over in order to build both
......
--- ---
##
## for future compliance, when the API comes on line.
##
- name: notifier | restart notifier-scheduler - name: notifier | restart notifier-scheduler
supervisorctl: > supervisorctl: >
name=notifier-scheduler name=notifier-scheduler
......
--- ---
- name: notifier | stop notifier-celery-beat # - name: notifier | stop notifier-celery-beat
supervisorctl: > # supervisorctl: >
name="{{ item }}" # name="{{ item }}"
supervisorctl_path={{ supervisor_ctl }} # supervisorctl_path={{ supervisor_ctl }}
config={{ supervisor_cfg }} # config={{ supervisor_cfg }}
state=present # state=present
ignore_errors: yes # ignore_errors: yes
sudo_user: "{{ common_web_user }}" # sudo_user: "{{ common_web_user }}"
with_items: ['notifier-scheduler','notifier-celery-workers'] # with_items: ['notifier-scheduler','notifier-celery-workers']
tags: # tags:
- deploy # - deploy
- name: notifier | checkout code - name: notifier | checkout code
git: git:
...@@ -19,7 +19,8 @@ ...@@ -19,7 +19,8 @@
sudo: true sudo: true
sudo_user: "{{ NOTIFIER_USER }}" sudo_user: "{{ NOTIFIER_USER }}"
notify: notify:
- notifier | restart notifier - notifier | restart notifier-scheduler
- notifier | restart notifier-celery-workers
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