diff options
-rw-r--r-- | manifests/init.pp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 69b5f86..146bcf2 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -85,9 +85,9 @@ define sshd::deploy_auth_key( } $real_source = $source ? { - '' => [ "sshd/authorized_keys/${name}", - "dist/sshd/authorized_keys/${name}"], - default => $source, + '' => [ "puppet://$server/sshd/authorized_keys/${name}", + "puppet://$server/dist/sshd/authorized_keys/${name}"], + default => "puppet://$server/$source", } file {$real_target: @@ -102,6 +102,6 @@ define sshd::deploy_auth_key( owner => $user, group => $real_group, mode => 600, - source => "puppet://$server/$real_source", + source => $real_source, } } |