Created
February 12, 2016 15:36
-
-
Save kevinquinnyo/a4f361cddd860c3f9424 to your computer and use it in GitHub Desktop.
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
root@dns2:~# salt-call event.fire "{'foo': 123}" 'start' | |
local: | |
True | |
root@dns2:~# salt-call event.send 'start' | |
local: | |
True |
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/netapi/hook/deploy': | |
- /srv/salt-dev/reactor/deploy.sls | |
- 'salt/minion/*/start': | |
- /srv/reactor/start.sls |
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
# /srv/salt-dev/reactor/start.sls | |
def run(): | |
ret = {} | |
ret['testing-reactor'] = { | |
'local.cmd.run': [ | |
{'tgt': data['id']}, | |
{'arg': ['echo asdf > /tmp/foo']} | |
] | |
} | |
return ret |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment