Przeglądaj źródła

Merge pull request #108 from kossmac/master

set user and group of user dir in pillar
tags/v0.45.0
Forrest 8 lat temu
rodzic
commit
2a8ef9f466
2 zmienionych plików z 4 dodań i 2 usunięć
  1. +2
    -0
      pillar.example
  2. +2
    -2
      users/init.sls

+ 2
- 0
pillar.example Wyświetl plik

@@ -13,6 +13,8 @@ users:
empty_password: False
system: False
home: /custom/buser
homedir_owner: buser
homedir_group: primarygroup
user_dir_mode: 750
createhome: True
roomnumber: "A-1"

+ 2
- 2
users/init.sls Wyświetl plik

@@ -60,8 +60,8 @@ users_{{ name }}_user:
{% if user.get('createhome', True) %}
file.directory:
- name: {{ home }}
- user: {{ name }}
- group: {{ user_group }}
- user: {{ user.get('homedir_owner', name) }}
- group: {{ user.get('homedir_group', user_group) }}
- mode: {{ user.get('user_dir_mode', '0750') }}
- require:
- user: users_{{ name }}_user

Ładowanie…
Anuluj
Zapisz