readded a source

git-svn-id: https://svn/ipuppet/trunk/modules/sshd@1628 d66ca3ae-40d7-4aa7-90d4-87d79ca94279
This commit is contained in:
mh 2008-06-17 07:57:46 +00:00
parent ece3afde12
commit 8bc696b174

View file

@ -141,6 +141,7 @@ class sshd::openbsd inherits sshd::base {
### defines
define sshd::deploy_auth_key(
$source = 'present',
$user = 'root',
$target_dir = '/root/.ssh/',
$group = 0 ) {
@ -157,12 +158,17 @@ define sshd::deploy_auth_key(
mode => 700,
}
case $source {
'present': { $keysource = $name }
default: { $keysource = $source }
}
file {"authorized_keys_${user}":
path => "$real_target/authorized_keys",
owner => $user,
group => $group,
mode => 600,
source => [ "puppet://$server/files/sshd/authorized_keys/${name}",
source => [ "puppet://$server/files/sshd/authorized_keys/${keysource}",
"puppet://$server/files/sshd/authorized_keys/${fqdn}",
"puppet://$server/files/sshd/authorized_keys/default",
"puppet://$server/sshd/authorized_keys/${name}",