|
|
|
|
|
|
|
|
|
|
|
|
|
|
{# Handle matches last as they need to go at the bottom #} |
|
|
{# Handle matches last as they need to go at the bottom #} |
|
|
{%- if 'matches' in sshd_config %} |
|
|
{%- if 'matches' in sshd_config %} |
|
|
{%- for match in sshd_config['matches'].values() %} |
|
|
|
|
|
|
|
|
{%- for name, match in sshd_config['matches']|dictsort %} |
|
|
Match |
|
|
Match |
|
|
{#- Set up the match criteria -#} |
|
|
{#- Set up the match criteria -#} |
|
|
{%- for criteria in match['type'].keys()|sort() -%} |
|
|
{%- for criteria in match['type'].keys()|sort() -%} |
|
|
{{- ' ' }}{{criteria }} {{ join_to_string(match['type'], criteria) -}} |
|
|
{{- ' ' }}{{criteria }} {{ join_to_string(match['type'], criteria) -}} |
|
|
{%- endfor -%} |
|
|
|
|
|
|
|
|
{%- endfor %} #{{ name }} |
|
|
{#- Set up the applied options -#} |
|
|
{#- Set up the applied options -#} |
|
|
{%- for keyword in match['options'].keys() %} |
|
|
{%- for keyword in match['options'].keys() %} |
|
|
{{ render_option(keyword, '', config_dict=match['options']) }} |
|
|
{{ render_option(keyword, '', config_dict=match['options']) }} |