Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% set salt_master = 'salt-master.fqdn' %}
- run_state:
- cmd.cmd.run:
- - tgt: {{ salt_master }}
- - arg:
- - /usr/local/bin/run_state.sh {{ data['id'] }}"
- {% endload %}
- Then in the script
- #!/bin/bash
- ID="$1"
- salt "<target>" state.sls <state> pillar="{'id': '${ID}'}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement