factored out the package to some subclasses as openbsd doesn't need such a package
git-svn-id: https://svn/ipuppet/trunk/modules/sshd@2265 d66ca3ae-40d7-4aa7-90d4-87d79ca94279
This commit is contained in:
parent
1bda0022c1
commit
1afa887a2e
1 changed files with 12 additions and 5 deletions
|
@ -3,15 +3,16 @@
|
|||
class sshd::client {
|
||||
case $operatingsystem {
|
||||
debian: { include sshd::client::debian }
|
||||
default: { include sshd::client::base }
|
||||
default: {
|
||||
case $kernel {
|
||||
linux: { include sshd::client::linux }
|
||||
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;
|
||||
|
@ -21,6 +22,12 @@ class sshd::client::base {
|
|||
Sshkey <<||>>
|
||||
}
|
||||
|
||||
class sshd::client::linux inherits sshd::client::base {
|
||||
package {'openssh-clients':
|
||||
ensure => installed,
|
||||
}
|
||||
}
|
||||
|
||||
class sshd::client::debian inherits sshd::client::base {
|
||||
Package['openssh-clients']{
|
||||
name => 'openssh-client',
|
||||
|
|
Loading…
Reference in a new issue