Skip to content

Instantly share code, notes, and snippets.

@PredatorVI
Last active December 1, 2015 22:41
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/3a89cf7c46e1d559ab42 to your computer and use it in GitHub Desktop.
Save PredatorVI/3a89cf7c46e1d559ab42 to your computer and use it in GitHub Desktop.
Translating command-line: to JSON for salt-api
cmd: salt 'myminion-01' state.sls myservice.deploy_webapp
[{
"client": "local",
"tgt": "myminion-01",
"eauth": "pam",
"username": "user",
"password": "password",
"fun": "state.sls",
"arg": "myservice.deploy_webapp"
}]
[{
"client": "local",
"tgt": "myminion-01",
"eauth": "pam",
"username": "user",
"password": "password",
"fun": "state.sls",
"arg": [ "myservice.deploy_webapp" ]
}]
[{
"client": "local",
"tgt": "myminion-01",
"eauth": "pam",
"username": "user",
"password": "password",
"fun": "state.sls",
"mods": "myservice.deploy_webapp"
}]
[{
"client": "local",
"tgt": "myminion-01",
"eauth": "pam",
"username": "user",
"password": "password",
"fun": "state.sls",
"kwargs": {
"mods": "myservice.deploy_webapp"
}
}]
[{
"client": "local",
"tgt": "myminion-01",
"eauth": "pam",
"username": "user",
"password": "password",
"fun": "state.sls",
"kwargs": {
"mods": "myservice.deploy_webapp"
}
}]
[{
"client": "local",
"tgt": "myminion-01",
"eauth": "pam",
"username": "user",
"password": "password",
"fun": "state.sls",
"kwargs": {
"arg": "myservice.deploy_webapp"
}
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment