Ver código fonte

Adding support for the enforce_password option.

This will allow users change their passwords after the initial setting in Salt.
lookup-fix-3
Seth Miller 9 anos atrás
pai
commit
7dca1ebfd2
2 arquivos alterados com 4 adições e 0 exclusões
  1. +1
    -0
      pillar.example
  2. +3
    -0
      users/init.sls

+ 1
- 0
pillar.example Ver arquivo

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

+ 3
- 0
users/init.sls Ver arquivo

@@ -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 -%}

Carregando…
Cancelar
Salvar