瀏覽代碼

Allow state to update the gid

tags/v0.45.0
N 6 年之前
父節點
當前提交
b89b62d35c
No account linked to committer's email address
共有 3 個文件被更改,包括 8 次插入0 次删除
  1. +2
    -0
      pillar.example
  2. +3
    -0
      users/defaults.yaml
  3. +3
    -0
      users/init.sls

+ 2
- 0
pillar.example 查看文件

@@ -9,6 +9,7 @@ users:
fullname: A User

## Full list of pillar values
allow_gid_change: False
buser:
fullname: B User
password: $6$w.............
@@ -27,6 +28,7 @@ users:
workphone: "(555) 555-5555"
homephone: "(555) 555-5551"
manage_vimrc: False
allow_gid_change: True
manage_bashrc: False
manage_profile: False
expire: 16426

+ 3
- 0
users/defaults.yaml 查看文件

@@ -4,3 +4,6 @@
users-formula:
use_vim_formula: False

users:
allow_gid_change: True


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

@@ -151,6 +151,9 @@ users_{{ name }}_user:
{% if not user.get('unique', True) %}
- unique: False
{% endif %}
{%- if grains['saltversioninfo'] >= [2018, 3, 1] %}
- allow_gid_change: {{ users.allow_gid_change if 'allow_gid_change' not in user else user['allow_gid_change'] }}
{%- endif %}
{% if 'expire' in user -%}
{% if grains['kernel'].endswith('BSD') and
user['expire'] < 157766400 %}

Loading…
取消
儲存