Skip to content

Commit

Permalink
Merge pull request #302 from vquiering/fix_external_auth_config
Browse files Browse the repository at this point in the history
add salt master config template external_auth settings
  • Loading branch information
aboe76 authored Apr 8, 2017
2 parents 4b5ea5a + 894bd15 commit ca204ea
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion salt/files/master.d/f_defaults.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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') }}
Expand Down

0 comments on commit ca204ea

Please sign in to comment.