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

Add support for hash_password

This commit is contained in:
Fabian Niepelt 2016-12-01 16:59:51 +01:00
parent e014498dab
commit 153d07452c
2 changed files with 4 additions and 0 deletions

View File

@ -11,6 +11,7 @@ users:
# WARNING: If 'empty_password' is set to True, the 'password' statement
# will be ignored by enabling password-less login for the user.
empty_password: False
hash_password: False
system: False
home: /custom/buser
homedir_owner: buser

View File

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