Sfoglia il codice sorgente

Merge pull request #381 from starops/external_auth-file-directives

Add support for file external_auth special directives
tags/v0.57.0
Niels Abspoel 6 anni fa
parent
commit
3888519cdf
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. +4
    -0
      salt/files/master.d/f_defaults.conf

+ 4
- 0
salt/files/master.d/f_defaults.conf Vedi File

@@ -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 %}

Loading…
Annulla
Salva