Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
salt-formulas
fbk-formulas
fbkusers
Commits
63ffc720
Commit
63ffc720
authored
Aug 27, 2020
by
Francesco Gionghi
Browse files
fix home permissions
parent
819d4aa4
Changes
2
Show whitespace changes
Inline
Side-by-side
fbkusers/createuser/fixhomepermission.sls
0 → 100644
View file @
63ffc720
{#- Get the `tplroot` from `tpldir` #}
{%- set fbkusersroot = slspath.split('/')[0] %}
{%- from fbkusersroot ~ "/map.jinja" import fbkuserssettings with context %}
{% if pillar.fbkusers is defined %}
{% for user in pillar.fbkusers %}
/home/{{ user }}:
file.directory:
- user: {{ user }}
- group: {{ user }}
{% endfor %}
{% else %}
fbkusers-pillar-not-defined:
test.nop
{% endif %}
\ No newline at end of file
fbkusers/createuser/init.sls
View file @
63ffc720
include:
include:
- .createuser
- .createuser
- .fixhomepermission
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment