Skip to content

Instantly share code, notes, and snippets.

@vr-jack
Forked from iggy/master-reactor.conf
Last active August 29, 2015 14:20
Show Gist options
  • Save vr-jack/e482be2c2f598d958fe3 to your computer and use it in GitHub Desktop.
Save vr-jack/e482be2c2f598d958fe3 to your computer and use it in GitHub Desktop.
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