summaryrefslogtreecommitdiffstats
path: root/salt
diff options
context:
space:
mode:
authorGeorg Pfuetzenreuter2023-02-12 03:03:09 +0100
committerGeorg Pfuetzenreuter2023-02-12 03:03:09 +0100
commit9a0c210b87a4d2f7808f539898f2f41380d6a76f (patch)
tree89699d9ce0c0d14921b8a52504bf69b92e4020ce /salt
parent5da0bfe798ae7440942f3e222d3d03b6b96b6afe (diff)
downloadsalt-9a0c210b87a4d2f7808f539898f2f41380d6a76f.tar.gz
salt-9a0c210b87a4d2f7808f539898f2f41380d6a76f.tar.bz2
salt-9a0c210b87a4d2f7808f539898f2f41380d6a76f.zip
lighttpd: improve dependencies
- add more explicit Salt ID dependencies - reload service on configuration changes Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Diffstat (limited to 'salt')
-rw-r--r--salt/profile/lighttpd/init.sls5
1 files changed, 5 insertions, 0 deletions
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