Skip to content

Instantly share code, notes, and snippets.

@gladiatr72
Created February 11, 2015 22:42
Show Gist options
  • Save gladiatr72/f044f550c7ca8b6c92b9 to your computer and use it in GitHub Desktop.
Save gladiatr72/f044f550c7ca8b6c92b9 to your computer and use it in GitHub Desktop.
Example orchestration states
# 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