Skip to content

Instantly share code, notes, and snippets.

@gravyboat
Last active August 29, 2015 14:04
Show Gist options
  • Save gravyboat/145df1fd823581d9140f to your computer and use it in GitHub Desktop.
Save gravyboat/145df1fd823581d9140f to your computer and use it in GitHub Desktop.
basic usage of watch_in
my_package:
pkg:
- installed
- name: awesome_software
awesome_software_service:
service:
- running
- enable: True
include:
- awesome_software_directory.install_package
software_conf:
file:
- managed
- name: /path/to/software.conf
- source: salt://awesome_software/files/software.conf.jinja
- user: root
- group: root
- mode: 640
- template: jinja
- require:
- sls: awesome_software.install_package
- watch_in:
- service: awesome_software_service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment