Skip to content

Instantly share code, notes, and snippets.

Created August 22, 2016 10:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/b67df442af831fa45847df95e3a5ee76 to your computer and use it in GitHub Desktop.
Save anonymous/b67df442af831fa45847df95e3a5ee76 to your computer and use it in GitHub Desktop.
monit:
pkg.installed
monit-config-file:
file.managed:
- source: salt://monit/monit.conf
- name: /etc/monit.conf
monit-config-folder:
file.recurse:
- name: /etc/monit.d
- source: salt://monit/files
- clean: true
monit-service:
service.running:
- name: monit
- enable: true
- restart: true
- watch:
- file: /etc/monit.conf
- file: /etc/monit.d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment