Skip to content

Instantly share code, notes, and snippets.

@pryorda
Last active August 4, 2016 22:12
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 pryorda/161042a83a558c6068a68cb822a5a08f to your computer and use it in GitHub Desktop.
Save pryorda/161042a83a558c6068a68cb822a5a08f to your computer and use it in GitHub Desktop.
{% for support_usr in pillar.get('support-users', {}) %}
adding_{{ support_usr }}:
user.present:
- name: {{ support_usr }}
- gid: {{ salt['pillar.get']('support-users:{{ support_usr }}:gid', '') }}
- shell: /bin/false
{% endfor %}
Pillar...
support-users:
test-1:
- gid: 506
test2:
- gid: 512
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment