Skip to content

Instantly share code, notes, and snippets.

@kevinquinnyo
Created February 12, 2016 15:36
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 kevinquinnyo/a4f361cddd860c3f9424 to your computer and use it in GitHub Desktop.
Save kevinquinnyo/a4f361cddd860c3f9424 to your computer and use it in GitHub Desktop.
root@dns2:~# salt-call event.fire "{'foo': 123}" 'start'
local:
True
root@dns2:~# salt-call event.send 'start'
local:
True
# /etc/salt/master.d/reactor.conf
reactor:
- 'salt/netapi/hook/deploy':
- /srv/salt-dev/reactor/deploy.sls
- 'salt/minion/*/start':
- /srv/reactor/start.sls
# /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