-
-
Save rterbush/e360eb2b7e085c2a218a to your computer and use it in GitHub Desktop.
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
saltutil.sync_all: | |
salt.function: | |
- tgt: {{ grains['id'] }} | |
- reload_modules: True | |
saltutil.refresh_pillar: | |
salt.function: | |
- tgt: {{ grains['id'] }} | |
mine.update: | |
salt.function: | |
- tgt: {{ grains['id'] }} | |
pkg.refresh_db: | |
salt.function: | |
- tgt: {{ "{0} and G@os:Windows".format(grains['id']) }} | |
- expr_form: compound | |
highstate_run: | |
salt.state: | |
- tgt: {{ grains['id'] }} | |
- highstate: True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am attempting to use reactor to fire off this 'salt/cloud/*/created' event.
Reactor calls the following state:
If I set tgt: '*' it runs these states on all minions and not just the minion that was created.
If run as I have it above, I get the following error on the master:
It is not clear to me if I should be using grains['id'] here or data['id'] or something else entirely.