supervisor: put process in groups (#63844)

This commit is contained in:
Emmanuel Cazenave 2022-04-12 14:34:55 +02:00
parent 3930faa91e
commit 6d621ad56a
3 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,5 @@
[group:django]
programs=authentic2-multitenant,bijoe,chrono,combo,hobo,fargo,passerelle,welco,wcs
[group:uwsgi]
programs=authentic2-multitenant-uwsgi,bijoe-uwsgi,chrono-uwsgi,combo-uwsgi,hobo-uwsgi,fargo-uwsgi,passerelle-uwsgi,welco-uwsgi,wcs-uwsgi

View File

@ -250,3 +250,9 @@
become: yes
tags:
- tls
- name: Process groups supervisor configuration
copy:
src: publik-groups.conf
dest: /etc/supervisor/conf.d/publik-groups.conf
become: yes

View File

@ -30,7 +30,14 @@
state: absent
with_dict: "{{apps}}"
become: yes
- name: delete supervisor process groups conf
file:
path: "/etc/supervisor/conf.d/publik-groups.conf"
state: absent
with_dict: "{{apps}}"
become: yes
- name: delete supervisor agent conf
file:
path: "/etc/supervisor/conf.d/hobo-agent.conf"