Created
February 11, 2015 22:42
-
-
Save gladiatr72/f044f550c7ca8b6c92b9 to your computer and use it in GitHub Desktop.
Example orchestration states
This file contains hidden or 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
# vim: ft=sls | |
# | |
# this inteded to be called via the orchestrate runner. | |
# | |
# Example: | |
# salt-run state.orchestrate orc.bootstrap pillar='{ tgt: <minion id here> }' | |
orcestrate_test: | |
salt.state: | |
- tgt: {{pillar.tgt}} | |
- pillar: {{pillar|json()}} | |
- sls: | |
- test | |
update_minion: | |
salt.state: | |
- tgt: {{pillar.tgt}} | |
- sls: | |
- minion_update | |
install_baseline: | |
salt.state: | |
- tgt: {{pillar.tgt}} | |
{#- pillar: {{pillar|json()}} << - pass above defined dict to minion #} | |
- sls:• | |
- baseline | |
- require: | |
- salt: update_minion | |
configure_new_system: | |
salt.state: | |
- tgt: {{pillar.tgt}} | |
- highstate: True | |
- require: | |
- salt: install_baseline |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment