Merge pull request #76 from freach/master
openssh.auth will produce invalid SLS definition if sshd_config configs are missing
This commit is contained in:
commit
086937b84f
@ -40,7 +40,7 @@ include:
|
|||||||
{{ print_ssh_auth(identifier, key) }}
|
{{ print_ssh_auth(identifier, key) }}
|
||||||
{%- if 'sshd_config' in pillar and 'AuthorizedKeysFile' in pillar['sshd_config'] %}
|
{%- if 'sshd_config' in pillar and 'AuthorizedKeysFile' in pillar['sshd_config'] %}
|
||||||
- config: '{{ pillar['sshd_config']['AuthorizedKeysFile'] }}'
|
- config: '{{ pillar['sshd_config']['AuthorizedKeysFile'] }}'
|
||||||
{% endif -%}
|
{% endif %}
|
||||||
- require:
|
- require:
|
||||||
- service: {{ openssh.service }}
|
- service: {{ openssh.service }}
|
||||||
{%- else %}
|
{%- else %}
|
||||||
@ -52,4 +52,4 @@ include:
|
|||||||
{% endif -%}
|
{% endif -%}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
|
Loading…
Reference in New Issue
Block a user