Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # output from
- # salt '*' state.highstate -vvv test=true
- #
- minion01:
- ----------
- _errors:
- - Rendering SLS 'users' failed, render error:
- - Unknown yaml render error; line 10
- -
- - ---
- - [...]
- - gracie:
- - fullname: Luke Gracie
- - home: /home/gracie
- - password: <..snip..>
- - gid: 500 <======================
- - groups:
- - wheel
- - sr
- - srprop
- - prod
- - [...]
- - ---
- # from pillar/users/init.sls
- #
- users:
- gracie:
- fullname: Luke Gracie
- home: /home/gracie
- password: <..snip..>
- gid: 500
- groups:
- wheel
- <..snip..>
- # from salt/users/init.sls
- #
- {% for user, args in pillar['users'].iteritems() %}
- {{ user }}:
- group.present:
- - gid: {{ args['gid'] }}
- user.present:
- - fullname: {{ args['fullname'] }}
- - home: {{ args['home'] }}
- - gid: {{ args['gid'] }}
- {% if 'password' in args %}
- - password: {{ args['password'] }}
- {% if 'enforce_password' in args %}
- - enforce_password: {{ args['enforce_password'] }}
- {% endif %}
- {% endif %}
- {% if 'groups' in args %}
- - groups: {{ args['groups'] }}
- {% endif %}
- {% endfor %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement