Browse Source

fix salt master config template to use external_auth settings

master
Vitali Quiering 7 years ago
parent
commit
894bd15c79
1 changed files with 13 additions and 1 deletions
  1. +13
    -1
      salt/files/master.d/f_defaults.conf

+ 13
- 1
salt/files/master.d/f_defaults.conf View File

# pam: # pam:
# fred: # fred:
# - test.* # - 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 # Time (in seconds) for a newly generated token to live. Default: 12 hours
{{ get_config('token_expire', '43200') }} {{ get_config('token_expire', '43200') }}

Loading…
Cancel
Save