Skip to content

Instantly share code, notes, and snippets.

Created July 23, 2015 21:14
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/83419986706f88cfcdc0 to your computer and use it in GitHub Desktop.
Save anonymous/83419986706f88cfcdc0 to your computer and use it in GitHub Desktop.
states
reload-postgres:
service.running:
- name: postgresql-9.4
- reload: True
restart-postgres:
service.running:
- name: postgresql-9.4
watch_file_a:
file.managed:
- name: /file_a
- source: salt://file_a
- watch_in:
- service: reload-postgres
watch_file_b:
file.managed:
- name: /file_b
- source: salt://file_b
- watch_in:
- service: restart-postgres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment