Skip to content

Instantly share code, notes, and snippets.

Created April 17, 2017 19:24
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/c7294245aa389fd7457e0660af19525a to your computer and use it in GitHub Desktop.
Save anonymous/c7294245aa389fd7457e0660af19525a to your computer and use it in GitHub Desktop.
{% set data_set = salt['pillar.get']('data_set') %}
{% set errors = [] %}
{% set minion_id = data_set['target_host'] %}
{% set sudo_users = data_set['sudo_users'] %}
"run highstate":
salt.state:
- tgt: {{ minion_id }}
- highstate: True
- tgt_type: list
- pillar:
'my:dictionary:key": {{ sudo_users }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment