9fc6a0baf3
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
28 lines
618 B
Puppet
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',
|
|
}
|
|
}
|