Created
March 28, 2017 18:41
-
-
Save anonymous/c480b5edd59afacff8be968534f92768 to your computer and use it in GitHub Desktop.
build group list for user
This file contains 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
local: | |
Data failed to compile: | |
---------- | |
Rendering SLS 'base:pscweb-test.vhost_users' failed: Jinja syntax error: expected token ':', got '}'; line 9 |
This file contains 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
#site_users.sls | |
{%for user,args in pillar['site_users'].iteritems() %} | |
{{ user }}: | |
user.present: | |
- home: {{ args['home'] }} | |
- shell: /bin/false | |
- gid_from_name: True | |
{% set group_list = {{ group_list }} + [ '{{ user }}' ] %} | |
{% endfor %} | |
cmstransport: | |
user.present: | |
- groups: | |
- cis-webdev | |
{{ group_list }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment