module-sshd/manifests/client.pp
mh 9fc6a0baf3 added exporting and collecting of ssh keys
Taken from David Schmitts ssh module: http://git.black.co.at/?p=module-ssh


git-svn-id: https://svn/ipuppet/trunk/modules/sshd@1877 d66ca3ae-40d7-4aa7-90d4-87d79ca94279
2008-07-17 18:17:52 +00:00

28 lines
618 B
Puppet

# manifests/client.pp
class sshd::client {
case $operatingsystem {
debian: { include sshd::client::debian }
default: { include sshd::client::base }
}
}
class sshd::client::base {
package {'openssh-clients':
ensure => installed,
}
# this is needed because the gid might have changed
file { '/etc/ssh/ssh_known_hosts':
mode => 0644, owner => root, group => 0;
}
# Now collect all server keys
Sshkey <<||>>
}
class sshd::client::debian inherits sshd::client::base {
Package['openssh-clients']{
name => 'openssh-client',
}
}