module-sshd/manifests/client.pp
mh fce684ca58 fix correct inheritance
git-svn-id: https://svn/ipuppet/trunk/modules/sshd@2272 d66ca3ae-40d7-4aa7-90d4-87d79ca94279
2008-09-30 20:13:47 +00:00

35 lines
812 B
Puppet

# manifests/client.pp
class sshd::client {
case $operatingsystem {
debian: { include sshd::client::debian }
default: {
case $kernel {
linux: { include sshd::client::linux }
default: { include sshd::client::base }
}
}
}
}
class sshd::client::base {
# 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::linux inherits sshd::client::base {
package {'openssh-clients':
ensure => installed,
}
}
class sshd::client::debian inherits sshd::client::linux {
Package['openssh-clients']{
name => 'openssh-client',
}
}