From 7b679e207d888985a96cd7754d48eb8dbdfc6fb3 Mon Sep 17 00:00:00 2001 From: Jim Hague Date: Mon, 17 Jun 2024 13:24:08 +0100 Subject: [PATCH] Ensure mailman3-web gets restarted on config change. --- states/mailman/init.sls | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/states/mailman/init.sls b/states/mailman/init.sls index c2903ea..792f4b4 100644 --- a/states/mailman/init.sls +++ b/states/mailman/init.sls @@ -17,6 +17,17 @@ mailman3_conf: - group: list - mode: 0640 - 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: - source: salt://mailman/etc/mailman-web.py - group: www-data @@ -26,10 +37,10 @@ mailman3_conf: - pkg: mailman3 - sls: apache service.running: - - name: mailman3 + - name: mailman3-web - restart: true - watch: - - file: mailman3_conf + - file: mailman3_web_conf mailman3_exim4_conf: file.recurse: