Skip to content

Instantly share code, notes, and snippets.

@iggy
Created April 15, 2015 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save iggy/b7599a97c18ddd6e6ca4 to your computer and use it in GitHub Desktop.
Save iggy/b7599a97c18ddd6e6ca4 to your computer and use it in GitHub Desktop.
reactor calling orchestrate
reactor:
- 'salt/minion/*repo*/start':
- salt://salt/reactor/repo_start.sls
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
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