Pārlūkot izejas kodu

fix the path to authkeys

Allow user to specify aliased path (with %u)
master
Mathieu POTIER pirms 8 gadiem
vecāks
revīzija
760a2ad277
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +2
    -2
      openssh/auth.sls

+ 2
- 2
openssh/auth.sls Parādīt failu

@@ -39,7 +39,7 @@ include:
ssh_auth.present:
{{ print_ssh_auth(identifier, key) }}
{%- if 'sshd_config' in pillar and 'AuthorizedKeysFile' in pillar['sshd_config'] %}
- config: {{ pillar['sshd_config']['AuthorizedKeysFile'] }}
- config: '{{ pillar['sshd_config']['AuthorizedKeysFile'] }}'
{% endif -%}
- require:
- service: {{ openssh.service }}
@@ -48,7 +48,7 @@ include:
ssh_auth.absent:
{{ print_ssh_auth(identifier, key) }}
{%- if 'sshd_config' in pillar and 'AuthorizedKeysFile' in pillar['sshd_config'] %}
- config: {{ pillar['sshd_config']['AuthorizedKeysFile'] }}
- config: '{{ pillar['sshd_config']['AuthorizedKeysFile'] }}'
{% endif -%}
{%- endif -%}
{%- endfor -%}

Notiek ielāde…
Atcelt
Saglabāt