mirror of
https://github.com/saltstack-formulas/users-formula.git
synced 2024-11-28 02:57:55 +01:00
set user and group of user dir in pillar
This commit is contained in:
parent
ee75a7ecd1
commit
fa02b954a5
@ -59,8 +59,8 @@ users_{{ name }}_user:
|
|||||||
{% if user.get('createhome', True) %}
|
{% if user.get('createhome', True) %}
|
||||||
file.directory:
|
file.directory:
|
||||||
- name: {{ home }}
|
- name: {{ home }}
|
||||||
- user: {{ name }}
|
- user: {{ user.get('user_dir_user', name) }}
|
||||||
- group: {{ user_group }}
|
- group: {{ user.get('user_dir_group', user_group) }}
|
||||||
- mode: {{ user.get('user_dir_mode', '0750') }}
|
- mode: {{ user.get('user_dir_mode', '0750') }}
|
||||||
- require:
|
- require:
|
||||||
- user: users_{{ name }}_user
|
- user: users_{{ name }}_user
|
||||||
|
Loading…
Reference in New Issue
Block a user