瀏覽代碼

Add support for hash_password

lookup-fix-3
Fabian Niepelt 8 年之前
父節點
當前提交
153d07452c
共有 2 個文件被更改,包括 4 次插入0 次删除
  1. +1
    -0
      pillar.example
  2. +3
    -0
      users/init.sls

+ 1
- 0
pillar.example 查看文件

@@ -11,6 +11,7 @@ users:
# 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
hash_password: False
system: False
home: /custom/buser
homedir_owner: buser

+ 3
- 0
users/init.sls 查看文件

@@ -93,6 +93,9 @@ users_{{ name }}_user:
{% if 'enforce_password' in user -%}
- enforce_password: {{ user['enforce_password'] }}
{% endif -%}
{% if 'hash_password' in user -%}
- hash_password: {{ user['hash_password'] }}
{% endif -%}
{% if user.get('system', False) -%}
- system: True
{% endif -%}

Loading…
取消
儲存