Skip to content

Instantly share code, notes, and snippets.

Created May 29, 2015 14:59
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/2a0e2ee261ff2aaaa9d4 to your computer and use it in GitHub Desktop.
Save anonymous/2a0e2ee261ff2aaaa9d4 to your computer and use it in GitHub Desktop.
Reactor
/etc/salt/master.d/reactor.conf
reactor:
- 'salt/auth':
- /srv/reactor/auth-pending.sls
- 'salt/minion/rs_*/start':
- /srv/reactor/auth-complete.sls
- 'salt/minion/rs_*/start':
- /srv/reactor/test.sls
/srv/reactor/test.sls
{% if data['id'].startswith('rs_') %}
highstate_run:
cmd.state.highstate:
- tgt: {{ data['id'] }}
- arg:
- touch /tmp/final.txt
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment