fix the path to authkeys
Allow user to specify aliased path (with %u)
This commit is contained in:
parent
4c814843f8
commit
760a2ad277
@ -39,7 +39,7 @@ include:
|
|||||||
ssh_auth.present:
|
ssh_auth.present:
|
||||||
{{ 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 }}
|
||||||
@ -48,7 +48,7 @@ include:
|
|||||||
ssh_auth.absent:
|
ssh_auth.absent:
|
||||||
{{ 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 -%}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
|
Loading…
Reference in New Issue
Block a user