]> gitweb.fluxo.info Git - puppet-sshd.git/commitdiff
changed server way
authormh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>
Fri, 29 Feb 2008 13:51:45 +0000 (13:51 +0000)
committermh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>
Fri, 29 Feb 2008 13:51:45 +0000 (13:51 +0000)
git-svn-id: https://svn/ipuppet/trunk/modules/sshd@921 d66ca3ae-40d7-4aa7-90d4-87d79ca94279

manifests/init.pp

index 69b5f86ff1711551de91d58854dd338d59756ab2..146bcf2659793b47a723a187070ae6b42cd5ef98 100644 (file)
@@ -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,
         }
 }