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
b10e1c04
Commit
b10e1c04
authored
Aug 27, 2020
by
Francesco Gionghi
Browse files
fix check pillar exist
parent
b306dc4e
Changes
5
Show whitespace changes
Inline
Side-by-side
fbkusers/fsperm/fsperm.sls
View file @
b10e1c04
...
...
@@ -5,7 +5,7 @@
{% if pillar.fbkusers is defined %}
{% for user in pillar.fbkusers %}
{% if pillar.fbkusers[user]["fsperm"] %}
{% if pillar.fbkusers[user]["fsperm"]
is defined
%}
{% for dir in pillar.fbkusers[user]["fsperm"] %}
...
...
fbkusers/group/groups.sls
View file @
b10e1c04
...
...
@@ -6,7 +6,7 @@
{% if pillar.fbkusers is defined %}
{% for user in pillar.fbkusers %}
{% if pillar.fbkusers[user]["groups"] %}
{% if pillar.fbkusers[user]["groups"]
is defined
%}
{% for group in pillar.fbkusers[user]["groups"] %}
...
...
fbkusers/group/tomygroup.sls
View file @
b10e1c04
...
...
@@ -4,7 +4,7 @@
{% if pillar.fbkusers is defined %}
{% for user in pillar.fbkusers %}
{% if pillar.fbkusers[user]["tomygroup"] %}
{% if pillar.fbkusers[user]["tomygroup"]
is defined
%}
{% for userstoadd in pillar.fbkusers[user]["tomygroup"] %}
{% if salt['user.info'](userstoadd) %}
...
...
fbkusers/sshkey/sshkey.sls
View file @
b10e1c04
...
...
@@ -5,7 +5,7 @@
{% if pillar.fbkusers is defined %}
{% for user in pillar.fbkusers %}
{% if pillar.fbkusers[user]["sshkey"] %}
{% if pillar.fbkusers[user]["sshkey"]
is defined
%}
sshkey-{{ user }}:
ssh_auth.manage:
...
...
fbkusers/sudo/sudoservice.sls
View file @
b10e1c04
...
...
@@ -5,7 +5,7 @@
{% if pillar.fbkusers is defined %}
{% for user in pillar.fbkusers %}
{% if pillar.fbkusers[user]["sudoservice"] %}
{% if pillar.fbkusers[user]["sudoservice"]
is defined
%}
{% for service in pillar.fbkusers[user]["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