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:
parent
6f59d15abf
commit
147507f159
1 changed files with 29 additions and 19 deletions
|
@ -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 (
|
||||
|
|
Loading…
Reference in a new issue