Add Password if the state supports it.tags/v0.45.0
## Full list of pillar values | ## Full list of pillar values | ||||
buser: | buser: | ||||
fullname: B User | fullname: B User | ||||
password: $6$w............. | |||||
home: /custom/buser | home: /custom/buser | ||||
sudouser: True | sudouser: True | ||||
sudo_rules: | sudo_rules: |
{% if 'uid' in user -%} | {% if 'uid' in user -%} | ||||
- uid: {{ user['uid'] }} | - uid: {{ user['uid'] }} | ||||
{% endif -%} | {% endif -%} | ||||
{% if 'password' in user -%} | |||||
- password: {{ user['password'] }} | |||||
{% endif -%} | |||||
{% if 'prime_group' in user and 'gid' in user['prime_group'] -%} | {% if 'prime_group' in user and 'gid' in user['prime_group'] -%} | ||||
- gid: {{ user['prime_group']['gid'] }} | - gid: {{ user['prime_group']['gid'] }} | ||||
{% else -%} | {% else -%} |