From 760a2ad277d78965be52540bb7d63ba2ddebf81a Mon Sep 17 00:00:00 2001 From: Mathieu POTIER Date: Tue, 2 Aug 2016 09:54:46 +0200 Subject: [PATCH] fix the path to authkeys Allow user to specify aliased path (with %u) --- openssh/auth.sls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openssh/auth.sls b/openssh/auth.sls index 7fb6b4b..184455f 100644 --- a/openssh/auth.sls +++ b/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 -%}