changed the install behaviour for openbsd

git-svn-id: https://svn/ipuppet/trunk/modules/sshd@348 d66ca3ae-40d7-4aa7-90d4-87d79ca94279
This commit is contained in:
mh 2008-01-02 20:02:15 +00:00
parent 6f59d15abf
commit 147507f159

View file

@ -5,27 +5,37 @@
modules_dir { "sshd": }
class sshd {
service{'sshd':
enable => true,
ensure => running,
require => $operatingsystem ? {
openbsd => '',
default => Package[openssh],
}
}
package{openssh:
name => $operatingsystem ? {
centos => openssh-server,
default => openssh,
},
alias => 'openssh',
category => $operatingsystem ? {
gentoo => 'net-misc',
default => '',
},
ensure => present,
case $operatingsystem {
OpenBSD: {
service{'sshd':
enable => true,
ensure => running,
}
},
default: {
service{'sshd':
enable => true,
ensure => running,
require => Package[openssh],
}
package{openssh:
name => $operatingsystem ? {
centos => openssh-server,
default => openssh,
},
alias => 'openssh',
category => $operatingsystem ? {
gentoo => 'net-misc',
default => '',
},
ensure => present,
}
}
}
}
define sshd::sshd_config (