2
0

Merge pull request #302 from vquiering/fix_external_auth_config

add salt master config template external_auth settings
This commit is contained in:
Niels Abspoel 2017-04-08 12:04:57 +02:00 committed by GitHub
commit ca204ea8c4

View File

@ -401,7 +401,19 @@ client_acl_blacklist:
# pam:
# fred:
# - test.*
{{ get_config('external_auth', '{}') }}
{%- if 'external_auth' in cfg_master %}
{%- do default_keys.append('external_auth') %}
external_auth:
{%- for auth, users in cfg_master['external_auth']|dictsort %}
{{ auth }}:
{%- for user, commands in users.iteritems() %}
{{ user }}:
{%- for command in commands %}
- {% raw %}'{% endraw %}{{ command }}{% raw %}'{% endraw %}
{%- endfor -%}
{%- endfor -%}
{%- endfor -%}
{%- endif %}
# Time (in seconds) for a newly generated token to live. Default: 12 hours
{{ get_config('token_expire', '43200') }}