Adding support for the enforce_password option.

This will allow users change their passwords after the initial setting in Salt.
This commit is contained in:
Seth Miller 2015-07-17 10:18:38 -05:00
parent a7d348fb1f
commit 7dca1ebfd2
2 changed files with 4 additions and 0 deletions

View File

@ -7,6 +7,7 @@ users:
buser:
fullname: B User
password: $6$w.............
enforce_password: True
home: /custom/buser
createhome: True
manage_vimrc: False

View File

@ -72,6 +72,9 @@ users_{{ name }}_user:
{% if 'password' in user -%}
- password: '{{ user['password'] }}'
{% endif -%}
{% if 'enforce_password' in user -%}
- enforce_password: '{{ user['enforce_password'] }}'
{% endif -%}
{% if user.get('system', False) -%}
- system: True
{% endif -%}