瀏覽代碼

fix the path to authkeys

Allow user to specify aliased path (with %u)
master
Mathieu POTIER 8 年之前
父節點
當前提交
760a2ad277
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      openssh/auth.sls

+ 2
- 2
openssh/auth.sls 查看文件

@@ -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 -%}

Loading…
取消
儲存