Browse Source

Add ability to create system users.

tags/v0.45.0
René Jochum 9 years ago
parent
commit
c1b383d78b
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      users/init.sls

+ 3
- 1
users/init.sls View File

{% if 'password' in user -%} {% if 'password' in user -%}
- password: '{{ user['password'] }}' - password: '{{ user['password'] }}'
{% endif -%} {% endif -%}
{% if user.get('system', False) -%}
- system: True
{% endif -%}
{% if 'prime_group' in user and 'gid' in user['prime_group'] -%} {% if 'prime_group' in user and 'gid' in user['prime_group'] -%}
- gid: {{ user['prime_group']['gid'] }} - gid: {{ user['prime_group']['gid'] }}
{% else -%} {% else -%}
{{ group }}: {{ group }}:
group.absent group.absent
{% endfor %} {% endfor %}


Loading…
Cancel
Save