Advertisement
Guest User

Untitled

a guest
Aug 27th, 2014
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. {% set salt_master = 'salt-master.fqdn' %}
  2. run_state:
  3. cmd.cmd.run:
  4. - tgt: {{ salt_master }}
  5. - arg:
  6. - /usr/local/bin/run_state.sh {{ data['id'] }}"
  7. {% endload %}
  8.  
  9. Then in the script
  10. #!/bin/bash
  11. ID="$1"
  12. salt "<target>" state.sls <state> pillar="{'id': '${ID}'}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement