Skip to content

Instantly share code, notes, and snippets.

@PredatorVI
Last active October 14, 2015 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PredatorVI/5397a9c184c8f4bfa433 to your computer and use it in GitHub Desktop.
Save PredatorVI/5397a9c184c8f4bfa433 to your computer and use it in GitHub Desktop.
#This works when called on the salt-master command-line
salt-run state.orchestrate orchestration.myorch pillar='{"primary": "minion01", "secondary": ["minion02", "minion03"]}'
#This WORKS
curl -sSk https://salt-test:8000/run \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '[{"client": "runner", "eauth": "pam", "username": "me", "password":"goaway", "fun":"state.orchestrate", "mods": "orchestration.myorch", "pillar": {"primary": "minion01", "secondary": ["minion02", "minion03"]}}]'
@sjmh
Copy link

sjmh commented Oct 14, 2015

Try something like:

curl -sS http://localhost:8000/run -H 'Accept: application/json' -H 'Content-Type: application/json' -d '[{"client": "runner", "fun":"state.orchestrate", "eauth": "pam", "username":"me", "password":"goaway", "kwargs": {"mods": "orchestration.myorch", "pillar": {"primary": "blah"}}}]'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment