Skip to content

Instantly share code, notes, and snippets.

@whytewolf
Created November 16, 2015 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save whytewolf/e0966de195ed153256c7 to your computer and use it in GitHub Desktop.
Save whytewolf/e0966de195ed153256c7 to your computer and use it in GitHub Desktop.
eactor:
- 'salt/minion/*/start':
- /srv/reactor/orch.sls
sync_grains:
runner.state.orchestrate:
- mods: test
- pillar:
incoming_id: {{data['id']}}
test_file:
salt.function:
- name: file.touch
- tgt: {{pillar['incoming_id']}}
- arg:
- name=/tmp/{{pillar['incoming_id']}}
tmp# ls -l
total 56
-rw-r--r-- 1 root root 0 Nov 16 10:41 ctrl.wolfcloud.bad4.us
hostname
ctrl.wolfcloud.bad4.us
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment