瀏覽代碼

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 年之前
父節點
當前提交
7dca1ebfd2
共有 2 個檔案被更改,包括 4 行新增0 行删除
  1. +1
    -0
      pillar.example
  2. +3
    -0
      users/init.sls

+ 1
- 0
pillar.example 查看文件

@@ -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 查看文件

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

Loading…
取消
儲存