Quellcode durchsuchen

Merge pull request #98 from outime/master

Adds 'empty_password' statement for states.user.present (issue #97)
tags/v0.45.0
puneet kandhari vor 9 Jahren
Ursprung
Commit
bcd6b44c70
2 geänderte Dateien mit 6 neuen und 0 gelöschten Zeilen
  1. +3
    -0
      pillar.example
  2. +3
    -0
      users/init.sls

+ 3
- 0
pillar.example Datei anzeigen

@@ -8,6 +8,9 @@ users:
fullname: B User
password: $6$w.............
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
createhome: True
roomnumber: "A-1"

+ 3
- 0
users/init.sls Datei anzeigen

@@ -81,6 +81,9 @@ users_{{ name }}_user:
{% if 'password' in user -%}
- password: '{{ user['password'] }}'
{% endif -%}
{% if user.get('empty_password') -%}
- empty_password: {{ user.get('empty_password') }}
{% endif -%}
{% if 'enforce_password' in user -%}
- enforce_password: {{ user['enforce_password'] }}
{% endif -%}

Laden…
Abbrechen
Speichern