-
-
Save rterbush/379eae8548d12384bdc4 to your computer and use it in GitHub Desktop.
reactor
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
{% if grains['os'] == 'Windows' %} | |
refresh_pkg_db: | |
local.saltutil.pkg.refresh_db: | |
- tgt: {{ data['id'] }} | |
{% endif %} |
master config:
reactor:
- 'minion_start':
- /srv/salt/reactor/sync_grains.sls
- /srv/salt/reactor/sync_pillar.sls
- /srv/salt/reactor/windows_pkg.sls
- /srv/salt/reactor/elb_registration.sls
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am currently using this in my setup to only run if a grain is not present. I believe you can use the same logic without the
not
included:This might work for your scenario: