Skip to content

Instantly share code, notes, and snippets.

@erchn
Last active December 22, 2015 13:08
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 erchn/6476633 to your computer and use it in GitHub Desktop.
Save erchn/6476633 to your computer and use it in GitHub Desktop.
trigger script when updated:
file.managed:
- name: /usr/local/bin/script.sh
- source: salt://script.sh
- mode: 700
cmd.wait:
- name: /usr/local/bin/script.sh
- cwd: /tmp
- watch:
- file: trigger script when updated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment