Skip to content

Commit

Permalink
Merge pull request #381 from starops/external_auth-file-directives
Browse files Browse the repository at this point in the history
Add support for file external_auth special directives
  • Loading branch information
aboe76 authored Dec 19, 2018
2 parents b13bc6d + ec33ba5 commit 3888519
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions salt/files/master.d/f_defaults.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down Expand Up @@ -560,6 +563,7 @@ external_auth:
- {% raw %}'{% endraw %}{{ command }}{% raw %}'{% endraw %}
{%- endif %}
{%- endfor -%}
{%- endif %}
{%- endfor -%}
{%- endfor -%}
{%- endif %}
Expand Down

0 comments on commit 3888519

Please sign in to comment.