From 9a0c210b87a4d2f7808f539898f2f41380d6a76f Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Sun, 12 Feb 2023 03:03:09 +0100 Subject: lighttpd: improve dependencies - add more explicit Salt ID dependencies - reload service on configuration changes Signed-off-by: Georg Pfuetzenreuter --- salt/profile/lighttpd/init.sls | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/salt/profile/lighttpd/init.sls b/salt/profile/lighttpd/init.sls index 1d4f9e9..662f8f1 100644 --- a/salt/profile/lighttpd/init.sls +++ b/salt/profile/lighttpd/init.sls @@ -25,6 +25,8 @@ lighttpd_files: - group: lighttpd - mode: '0640' - template: jinja + - watch_in: + - service: lighttpd_service - names: - /etc/lighttpd/lighttpd.conf: - source: salt:///{{ slspath }}/files/etc/lighttpd/lighttpd.conf.j2 @@ -40,3 +42,6 @@ lighttpd_service: service.running: - name: lighttpd.service - enable: True + - reload: True + - require: + - pkg: lighttpd_packages -- cgit v1.2.3