mirror of
https://github.com/saltstack-formulas/users-formula.git
synced 2026-07-24 00:45:45 +02:00
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:
@@ -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 -%}
|
||||
|
||||
Reference in New Issue
Block a user