Browse Source

fix issue with stripping new line will result in invalid SLS definition if AuthorizedKeysFile is missing in sshd_config

tags/v0.41.0
Simon Pirschel 8 years ago
parent
commit
1b69ecab2c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      openssh/auth.sls

+ 2
- 2
openssh/auth.sls View File

{{ 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 %}
{% endif -%} {% endif -%}
{%- endif -%} {%- endif -%}
{%- endfor -%} {%- endfor -%}
{%- endfor -%}
{%- endfor -%}

Loading…
Cancel
Save