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: