openssh.auth will produce invalid SLS definition if sshd_config configs are missingtags/v0.41.0
@@ -40,7 +40,7 @@ include: | |||
{{ print_ssh_auth(identifier, key) }} | |||
{%- if 'sshd_config' in pillar and 'AuthorizedKeysFile' in pillar['sshd_config'] %} | |||
- config: '{{ pillar['sshd_config']['AuthorizedKeysFile'] }}' | |||
{% endif -%} | |||
{% endif %} | |||
- require: | |||
- service: {{ openssh.service }} | |||
{%- else %} | |||
@@ -52,4 +52,4 @@ include: | |||
{% endif -%} | |||
{%- endif -%} | |||
{%- endfor -%} | |||
{%- endfor -%} | |||
{%- endfor -%} |