fix issue with stripping new line will result in invalid SLS definition if AuthorizedKeysFile is missing in sshd_config
This commit is contained in:
parent
2a1b8fbc66
commit
1b69ecab2c
@ -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 -%}
|
||||
|
Loading…
Reference in New Issue
Block a user