Skip to content

Instantly share code, notes, and snippets.

@danilochilene
Created October 20, 2016 18:16
Show Gist options
  • Save danilochilene/2969a1168d9b5c5b21fe2c08e0ba4d1a to your computer and use it in GitHub Desktop.
Save danilochilene/2969a1168d9b5c5b21fe2c08e0ba4d1a to your computer and use it in GitHub Desktop.
event.wait data
Warnings: 'data' is an invalid keyword argument for 'event.wait'. If you
were trying to pass additional data to be used in a template
context, please populate 'context' with 'key: value' pairs. Your
approach will work until Salt Carbon is out. Please update your
state files.
@danilochilene
Copy link
Author

danilochilene commented Oct 20, 2016

The state.
add_host:
cmd.cmd.run:
- tgt: 'salt-stack'
- arg:
- '/usr/bin/python /srv/salt/manage_host.py --action create --hostname {{ data['data']['hostname'] }} --ip {{ data['data']['ip'] }}'

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