Advertisement
Guest User

Untitled

a guest
Dec 23rd, 2015
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. $ cat /etc/salt/master.d/reactor.conf:
  2.  
  3. reactor:
  4. - 'salt/job/*/new':
  5. - '/srv/salt/reactor/highstate_any.sls'
  6.  
  7.  
  8. ==================================================================
  9. $ cat reactor/highstate_any.sls:
  10.  
  11. {% if data['fun'] == 'state.highstate' %}
  12. highstate_any:
  13. runner.state.sls:
  14. - mods: slack_highstate
  15. {% endif %}
  16.  
  17. ==================================================================
  18. $ cat state/env/base/slack_highstate.sls:
  19.  
  20. slack_highstate:
  21. slack.post_message:
  22. - channel: '#salt'
  23. - from_name: Salt
  24. - message: 'Highstate execution activated...'
  25. - api_key: xoxp-xxxxx-blablabla
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement