Ensure mailman3-web gets restarted on config change.

This commit is contained in:
Jim Hague 2024-06-17 13:24:08 +01:00
parent f05e731a7a
commit 7b679e207d
1 changed files with 13 additions and 2 deletions

View File

@ -17,6 +17,17 @@ mailman3_conf:
- group: list - group: list
- mode: 0640 - mode: 0640
- template: jinja - template: jinja
- require:
- pkg: mailman3
service.running:
- name: mailman3
- restart: true
- watch:
- file: mailman3_conf
mailman3_web_conf:
file.managed:
- names:
- /etc/mailman3/mailman-web.py: - /etc/mailman3/mailman-web.py:
- source: salt://mailman/etc/mailman-web.py - source: salt://mailman/etc/mailman-web.py
- group: www-data - group: www-data
@ -26,10 +37,10 @@ mailman3_conf:
- pkg: mailman3 - pkg: mailman3
- sls: apache - sls: apache
service.running: service.running:
- name: mailman3 - name: mailman3-web
- restart: true - restart: true
- watch: - watch:
- file: mailman3_conf - file: mailman3_web_conf
mailman3_exim4_conf: mailman3_exim4_conf:
file.recurse: file.recurse: