Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
salt-formulas
fbk-formulas
fbkusers
Commits
a0e68e7a
Commit
a0e68e7a
authored
Aug 27, 2020
by
Francesco Gionghi
Browse files
fixing the for loop
parent
8560f29c
Changes
6
Hide whitespace changes
Inline
Side-by-side
fbkusers/createuser/createuser.sls
View file @
a0e68e7a
...
...
@@ -5,7 +5,7 @@
{% if pillar.fbkusers is defined %}
{% for user in fbkusers
.items()
%}
{% for user in fbkusers %}
{{ user }}-group:
group.present:
...
...
fbkusers/fsperm/fsperm.sls
View file @
a0e68e7a
...
...
@@ -4,7 +4,7 @@
{%- from fbkusersroot ~ "/map.jinja" import fbkusers with context %}
{% if pillar.fbkusers is defined %}
{% for user, options in fbkusers
.items()
%}
{% for user, options in fbkusers %}
{% if options["fsperm"] %}
{% for dir in options["fsperm"] %}
...
...
fbkusers/group/groups.sls
View file @
a0e68e7a
...
...
@@ -4,7 +4,7 @@
{%- from fbkusersroot ~ "/map.jinja" import fbkusers with context %}
{% if pillar.fbkusers is defined %}
{% for user, options in fbkusers
.items()
%}
{% for user, options in fbkusers %}
{% if options["groups"] %}
{% for group in option["groups"] %}
...
...
fbkusers/sshkey/sshkey.sls
View file @
a0e68e7a
...
...
@@ -4,7 +4,7 @@
{%- from fbkusersroot ~ "/map.jinja" import fbkusers with context %}
{% if pillar.fbkusers is defined %}
{% for user, options in fbkusers
.items()
%}
{% for user, options in fbkusers %}
{% if options["sshkey"] %}
{% for key in options["sshkey"] %}
...
...
fbkusers/sudo/sudocmd.sls
View file @
a0e68e7a
...
...
@@ -4,7 +4,7 @@
{%- from fbkusersroot ~ "/map.jinja" import fbkusers with context %}
{% if pillar.fbkusers is defined %}
{% for user, options in fbkusers
.items()
%}
{% for user, options in fbkusers %}
{% if options["sudocmd"] %}
/etc/sudoers.d/{{ user }}-cmd:
...
...
fbkusers/sudo/sudoservice.sls
View file @
a0e68e7a
...
...
@@ -4,7 +4,7 @@
{%- from fbkusersroot ~ "/map.jinja" import fbkusers with context %}
{% if pillar.fbkusers is defined %}
{% for user, options in fbkusers
.items()
%}
{% for user, options in fbkusers %}
{% if options["sudoservice"] %}
{% for service in options["sudoservice"] %}
...
...
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