mirror of
https://github.com/saltstack-formulas/users-formula.git
synced 2025-02-17 15:44:26 +01:00
Adds 'empty_password' statement for states.user.present
This commit is contained in:
parent
d3d6cfba61
commit
851a59e952
@ -8,6 +8,9 @@ users:
|
|||||||
fullname: B User
|
fullname: B User
|
||||||
password: $6$w.............
|
password: $6$w.............
|
||||||
enforce_password: True
|
enforce_password: True
|
||||||
|
# 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
|
||||||
home: /custom/buser
|
home: /custom/buser
|
||||||
createhome: True
|
createhome: True
|
||||||
roomnumber: "A-1"
|
roomnumber: "A-1"
|
||||||
|
@ -78,9 +78,12 @@ users_{{ name }}_user:
|
|||||||
{% if 'uid' in user -%}
|
{% if 'uid' in user -%}
|
||||||
- uid: {{ user['uid'] }}
|
- uid: {{ user['uid'] }}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
{% if 'password' in user -%}
|
{% if 'password in user -%}
|
||||||
- password: '{{ user['password'] }}'
|
- password: '{{ user['password'] }}'
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
{% if empty_password is defined -%}
|
||||||
|
- empty_password: {{ user['empty_password'] }}
|
||||||
|
{% endif -%}
|
||||||
{% if 'enforce_password' in user -%}
|
{% if 'enforce_password' in user -%}
|
||||||
- enforce_password: {{ user['enforce_password'] }}
|
- enforce_password: {{ user['enforce_password'] }}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
Loading…
Reference in New Issue
Block a user