-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6113 from dimagi/dmr/fix-supervisor-file-management
Fix supervisor service file management
- Loading branch information
Showing
12 changed files
with
94 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 10 additions & 27 deletions
37
src/commcare_cloud/ansible/roles/commcarehq/tasks/celery.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 3 additions & 10 deletions
13
src/commcare_cloud/ansible/roles/commcarehq/tasks/management_commands.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 3 additions & 9 deletions
12
src/commcare_cloud/ansible/roles/commcarehq/tasks/pillowtop.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 3 additions & 7 deletions
10
src/commcare_cloud/ansible/roles/commcarehq/tasks/prometheus_django_runner.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
- set_fact: | ||
prometheus_django_runner_managed_files: | ||
- "{{ django_bash_runner_path }}" | ||
|
||
- name: Add django_bash_runner | ||
become: yes | ||
template: | ||
src: "../templates/django_bash_runner.sh.j2" | ||
dest: "{{ django_bash_runner_path }}" | ||
src: "{{ supervisor_service_files.django_bash_runner.template }}" | ||
dest: "{{ supervisor_service_files.django_bash_runner.file_path }}" | ||
owner: "{{ cchq_user }}" | ||
group: "{{ cchq_user }}" | ||
mode: 0644 | ||
when: prometheus_monitoring_enabled|default(False) | ||
when: supervisor_service_files.django_bash_runner.should_exist |
12 changes: 3 additions & 9 deletions
12
src/commcare_cloud/ansible/roles/commcarehq/tasks/proxy_websockets.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
- set_fact: | ||
supervisor_websockets: "{{ service_home }}/{{ deploy_env }}_supervisor_websockets.conf" | ||
|
||
- set_fact: | ||
proxy_managed_files: | ||
- "{{ supervisor_websockets }}" | ||
|
||
- name: define websockets services | ||
become: yes | ||
template: | ||
src: "../templates/supervisor_websockets.conf" | ||
dest: "{{ supervisor_websockets }}" | ||
src: "{{ supervisor_service_files.websockets.template }}" | ||
dest: "{{ supervisor_service_files.websockets.file_path }}" | ||
owner: "{{ cchq_user }}" | ||
group: "{{ cchq_user }}" | ||
mode: 0644 | ||
when: supervisor_service_files.websockets.should_exist |
12 changes: 3 additions & 9 deletions
12
src/commcare_cloud/ansible/roles/commcarehq/tasks/webworkers.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
src/commcare_cloud/ansible/roles/supervisor/templates/supervisor_task.conf.j2
This file was deleted.
Oops, something went wrong.