Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@dufresne ~]# tail -n 4 /etc/salt/master
- reactor:
- - 'tag/for/my/reactor':
- - '/srv/reactor/custom-reactor.sls'
- [root@dufresne ~]# cat /srv/reactor/custom-reactor.sls
- #!py
- import pprint
- with open('/tmp/custom-reactor', 'w') as fh_:
- fh_.write(pprint.pformat(data) +'\n')
- [root@dufresne ~]# salt dufresne event.fire_master '{"key1": "val1"}' 'tag/for/my/reactor'; cat /tmp/custom-reactor
- dufresne:
- True
- {'_stamp': '2014-02-17_16:33:45.174641',
- 'cmd': '_minion_event',
- 'data': {'key1': 'val1'},
- 'id': 'dufresne',
- 'pretag': None,
- 'tag': 'tag/for/my/reactor'}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement