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

fixing the for loop

parent 8560f29c
......@@ -5,7 +5,7 @@
{% if pillar.fbkusers is defined %}
{% for user in fbkusers.items() %}
{% for user in fbkusers %}
{{ user }}-group:
group.present:
......
......@@ -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"] %}
......
......@@ -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"] %}
......
......@@ -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"] %}
......
......@@ -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:
......
......@@ -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"] %}
......
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