From ec33ba5fab1eae75d3960f519de3d851f7149bfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20L=C3=B6thberg?= Date: Mon, 6 Aug 2018 10:26:17 +0200 Subject: [PATCH] Add support for file external_auth special directives MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- salt/files/master.d/f_defaults.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/salt/files/master.d/f_defaults.conf b/salt/files/master.d/f_defaults.conf index 1f0b562..4ab155f 100644 --- a/salt/files/master.d/f_defaults.conf +++ b/salt/files/master.d/f_defaults.conf @@ -529,6 +529,9 @@ external_auth: {%- for auth, users in cfg_master['external_auth']|dictsort %} {{ auth }}: {%- for user, commands in users.items() %} +{%- if user.startswith('^') %} + {{ user }}: {% raw %}'{% endraw %}{{ commands }}{% raw %}'{% endraw %} +{%- else %} {{ user }}: {%- for command in commands %} {%- if command is mapping %} @@ -560,6 +563,7 @@ external_auth: - {% raw %}'{% endraw %}{{ command }}{% raw %}'{% endraw %} {%- endif %} {%- endfor -%} +{%- endif %} {%- endfor -%} {%- endfor -%} {%- endif %}