From 35c995aee79eca4d54042c2b91f87c5cfed299b2 Mon Sep 17 00:00:00 2001 From: bellaweo Date: Tue, 14 Feb 2017 15:37:13 -0800 Subject: [PATCH] syntax errors --- sudoers/files/sudoers | 8 +++++--- sudoers/map.jinja | 3 +-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/sudoers/files/sudoers b/sudoers/files/sudoers index 4d95f24..78e118e 100644 --- a/sudoers/files/sudoers +++ b/sudoers/files/sudoers @@ -95,11 +95,13 @@ Runas_Alias {{ name }} = {{ ",".join(runas) }} {{ group }} {{ spec }} {%- endfor %} {%- endfor %} -{% for unix_group in in salt['pillar.get']('group_map:core', {}).keys() %} - {% if unix_group in group_map.keys() %} +{%- for unix_group in pillar.get('group_map:core', {}).keys() %} + {%- if unix_group in group_map.keys() %} {{ unix_group }} {{ group_map.unix_group }} - {% else %} + {%- else %} {{ unix_group }} (( group_map.default }} + {%- endif %} +{%- endfor %} {% if includedir %} ## Read drop-in files from /etc/sudoers.d diff --git a/sudoers/map.jinja b/sudoers/map.jinja index 23cfeeb..b019dfc 100644 --- a/sudoers/map.jinja +++ b/sudoers/map.jinja @@ -21,6 +21,5 @@ 'plosqa': 'ALL = (ALL:ALL) NOPASSWD: ALL' }, }, grain='environment', - merge=salt['pillar.get']('group_maps:lookup', None)), - default='default' + merge=salt['pillar.get']('group_maps:lookup', None)) %}