Pārlūkot izejas kodu

incorporated change suggestions

tags/v0.45.0
root pirms 6 gadiem
vecāks
revīzija
fd25c3e4a4
2 mainītis faili ar 3 papildinājumiem un 4 dzēšanām
  1. +1
    -0
      users/defaults.yaml
  2. +2
    -4
      users/init.sls

+ 1
- 0
users/defaults.yaml Parādīt failu

@@ -6,4 +6,5 @@ users-formula:

users:
allow_gid_change: True
createhome: True


+ 2
- 4
users/init.sls Parādīt failu

@@ -53,7 +53,7 @@ include:
{%- endif -%}
{%- set current = salt.user.info(name) -%}
{%- set home = user.get('home', current.get('home', "/home/%s" % name)) -%}
{%- set createhome = user.get('createhome', True) -%}
{%- set createhome = user.get('createhome') -%}

{%- if 'prime_group' in user and 'name' in user['prime_group'] %}
{%- set user_group = user.prime_group.name -%}
@@ -144,9 +144,7 @@ users_{{ name }}_user:
{% if 'homephone' in user %}
- homephone: {{ user['homephone'] }}
{% endif %}
{% if not createhome -%}
- createhome: False
{% endif %}
- createhome: {{ createhome }}
{% if not user.get('unique', True) %}
- unique: False
{% endif %}

Notiek ielāde…
Atcelt
Saglabāt