Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% for user, args in pillar['users'].iteritems() %}
- {{ user }}:
- user.present:
- - name: {{ user }}
- {% if 'uid' in args %}
- - uid: {{ args['uid'] }}
- {% endif %}
- {% if 'gid' in args %}
- - gid: {{ args['gid'] }}
- {% endif %}
- {% if 'fullname' in args %}
- - fullname: {{ args['fullname'] }}
- {% endif %}
- {% if 'roomnumber' in args %}
- - roomnumber: "{{ args['roomnumber'] }}"
- {% endif %}
- {% if 'workphone' in args %}
- - workphone: "{{ args['workphone'] }}"
- {% endif %}
- {% if 'home' in args %}
- - home: {{ args['home'] }}
- {% endif %}
- {% if 'shell' in args %}
- - shell: {{ args['shell'] }}
- {% endif %}
- {% if 'optional_groups' in args %}
- - optional_groups: {{ args['optional_groups'] }}
- {% endif %}
- - createhome: False
- - remove_groups: False
- - watch_in:
- {% endfor %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement