Skip to content

Commit

Permalink
Fix monit service watch to config files
Browse files Browse the repository at this point in the history
  • Loading branch information
amontalban committed Jan 26, 2017
1 parent 8627edc commit 53f7121
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 6 additions & 0 deletions monit/config.sls
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
- template: jinja
- makedirs: True
- mode: '0700'
- watch_in:
- service: {{ monit.service.name }}
- context:
config_includes: {{ monit.config_includes }}
http_access: {{ monit.http_access }}
Expand All @@ -18,6 +20,8 @@
- source: salt://monit/files/mail
- template: jinja
- makedirs: True
- watch_in:
- service: {{ monit.service.name }}
- context:
mail_alert: {{ monit.mail_alert }}
{% endif %}
Expand All @@ -28,5 +32,7 @@
file.managed:
- source: salt://monit/files/modules
- template: jinja
- watch_in:
- service: {{ monit.service.name }}
- context:
modules: {{ monit.modules }}
4 changes: 0 additions & 4 deletions monit/service.sls
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,3 @@
service.running:
- enable: True
- restart: True
- watch:
- file: {{ monit.config }}
- file: {{ monit.config_includes }}/mail
- file: {{ monit.config_includes }}/modules

0 comments on commit 53f7121

Please sign in to comment.