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

fixing the for loop

parent 8560f29c
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
{% if pillar.fbkusers is defined %} {% if pillar.fbkusers is defined %}
{% for user in fbkusers.items() %} {% for user in fbkusers %}
{{ user }}-group: {{ user }}-group:
group.present: group.present:
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
{%- from fbkusersroot ~ "/map.jinja" import fbkusers with context %} {%- from fbkusersroot ~ "/map.jinja" import fbkusers with context %}
{% if pillar.fbkusers is defined %} {% if pillar.fbkusers is defined %}
{% for user, options in fbkusers.items() %} {% for user, options in fbkusers %}
{% if options["fsperm"] %} {% if options["fsperm"] %}
{% for dir in options["fsperm"] %} {% for dir in options["fsperm"] %}
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
{%- from fbkusersroot ~ "/map.jinja" import fbkusers with context %} {%- from fbkusersroot ~ "/map.jinja" import fbkusers with context %}
{% if pillar.fbkusers is defined %} {% if pillar.fbkusers is defined %}
{% for user, options in fbkusers.items() %} {% for user, options in fbkusers %}
{% if options["groups"] %} {% if options["groups"] %}
{% for group in option["groups"] %} {% for group in option["groups"] %}
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
{%- from fbkusersroot ~ "/map.jinja" import fbkusers with context %} {%- from fbkusersroot ~ "/map.jinja" import fbkusers with context %}
{% if pillar.fbkusers is defined %} {% if pillar.fbkusers is defined %}
{% for user, options in fbkusers.items() %} {% for user, options in fbkusers %}
{% if options["sshkey"] %} {% if options["sshkey"] %}
{% for key in options["sshkey"] %} {% for key in options["sshkey"] %}
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
{%- from fbkusersroot ~ "/map.jinja" import fbkusers with context %} {%- from fbkusersroot ~ "/map.jinja" import fbkusers with context %}
{% if pillar.fbkusers is defined %} {% if pillar.fbkusers is defined %}
{% for user, options in fbkusers.items() %} {% for user, options in fbkusers %}
{% if options["sudocmd"] %} {% if options["sudocmd"] %}
/etc/sudoers.d/{{ user }}-cmd: /etc/sudoers.d/{{ user }}-cmd:
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
{%- from fbkusersroot ~ "/map.jinja" import fbkusers with context %} {%- from fbkusersroot ~ "/map.jinja" import fbkusers with context %}
{% if pillar.fbkusers is defined %} {% if pillar.fbkusers is defined %}
{% for user, options in fbkusers.items() %} {% for user, options in fbkusers %}
{% if options["sudoservice"] %} {% if options["sudoservice"] %}
{% for service in 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