Skip to content

Instantly share code, notes, and snippets.

Created November 5, 2017 23:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/7a9628e0c092e0d923fbaf19bc3a6e87 to your computer and use it in GitHub Desktop.
Save anonymous/7a9628e0c092e0d923fbaf19bc3a6e87 to your computer and use it in GitHub Desktop.
#
# orchestration run with: salt-run state.orch orch.my-orch
#
{% set foo = salt['my_mod.foo_method']() %}
{% set bar = salt['my_mod.bar_method']() %}
invoke something:
salt.state:
- tgt: {{ pillar.get('foo_targets') }}
- sls:
- orch.something
# salt.state doesn't have anything for this that i can find. can it be done at all?
- pass_data:
foo: {{ foo }}
bar: {{ bar }}
#
# state involked by orchestration
#
/tmp/file:
file.managed:
- content: FOO={{ foo }} BAR={{ bar }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment