-
-
Save anonymous/2a0e2ee261ff2aaaa9d4 to your computer and use it in GitHub Desktop.
Reactor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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