Browse Source
Merge pull request #165 from bbinet/make-home-parent-dir
Create user home parent dir if makedirs is True
pull/189/head
Filip Pytloun
5 years ago
No account linked to committer's email address
1 changed files with
9 additions and
0 deletions
-
linux/system/user.sls
|
|
|
|
|
|
|
|
- user: system_user_{{ name }} |
|
|
- user: system_user_{{ name }} |
|
|
{%- endif %} |
|
|
{%- endif %} |
|
|
|
|
|
|
|
|
|
|
|
{%- if user.get('makedirs') %} |
|
|
|
|
|
system_user_home_parentdir_{{ user.home }}: |
|
|
|
|
|
file.directory: |
|
|
|
|
|
- name: {{ user.home | path_join("..") }} |
|
|
|
|
|
- makedirs: true |
|
|
|
|
|
- require_in: |
|
|
|
|
|
- user: system_user_{{ name }} |
|
|
|
|
|
{%- endif %} |
|
|
|
|
|
|
|
|
system_user_{{ name }}: |
|
|
system_user_{{ name }}: |
|
|
user.present: |
|
|
user.present: |
|
|
- name: {{ name }} |
|
|
- name: {{ name }} |