Commit b10e1c04 authored by Francesco Gionghi's avatar Francesco Gionghi
Browse files

fix check pillar exist

parent b306dc4e
......@@ -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"] %}
......
......@@ -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"] %}
......
......@@ -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) %}
......
......@@ -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:
......
......@@ -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"] %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment