Created
October 20, 2016 18:16
-
-
Save danilochilene/2969a1168d9b5c5b21fe2c08e0ba4d1a to your computer and use it in GitHub Desktop.
event.wait data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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'] }}'