0
0
mirror of https://github.com/saltstack-formulas/users-formula.git synced 2024-11-27 22:38:34 +01:00

Add support for setting user expire

This commit is contained in:
Thomas Juberg 2014-12-22 14:22:46 +01:00
parent c237912af0
commit e35045801c
2 changed files with 5 additions and 1 deletions

View File

@ -9,6 +9,7 @@ users:
password: $6$w.............
home: /custom/buser
createhome: True
expire: 16426
sudouser: True
sudo_rules:
- ALL=(root) /usr/bin/find

View File

@ -58,6 +58,9 @@
{% if not user.get('createhome', True) %}
- createhome: False
{% endif %}
{% if 'expire' in user -%}
- expire: {{ user['expire'] }}
{% endif -%}
- remove_groups: {{ user.get('remove_groups', 'False') }}
- groups:
- {{ user_group }}