Created
April 15, 2015 16:05
-
-
Save iggy/b7599a97c18ddd6e6ca4 to your computer and use it in GitHub Desktop.
reactor calling orchestrate
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
reactor: | |
- 'salt/minion/*repo*/start': | |
- salt://salt/reactor/repo_start.sls |
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: '*' | |
- reload_modules: True | |
mine.update: | |
salt.function: | |
- tgt: '*' | |
#service.restart: | |
#salt.function: | |
## FIXME | |
#- tgt: '*repo*' | |
#- arg: | |
#- salt-minion | |
distgit: | |
salt.state: | |
- tgt: 'tags:repo' | |
- tgt_type: grain | |
- sls: | |
- distgit | |
publish_repo_one: | |
salt.state: | |
- tgt: 'tags:repo' | |
- tgt_type: grain | |
- require: | |
- salt: distgit | |
- sls: | |
- aptly.publish_repos | |
# have to do this twice because the first time fails with some gpg errors or something | |
publish_repo_two: | |
salt.state: | |
- tgt: 'tags:repo' | |
- tgt_type: grain | |
- sls: | |
- aptly.publish_repos | |
nginx: | |
salt.state: | |
- tgt: 'tags:repo' | |
- tgt_type: grain | |
- highstate: True | |
- sls: | |
- nginx | |
highstate_run: | |
salt.state: | |
- tgt: 'tags:repo' | |
- tgt_type: grain | |
- highstate: True |
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
on_boot: | |
runner.state.orchestrate: | |
- arg: | |
- orchestrate.repo_startup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment