inetd: Added support for OpenBSD 5.6.

This commit is contained in:
Timo Makinen 2014-11-19 15:44:48 +02:00
parent 64df8260c7
commit bb84d8b7da

View file

@ -48,6 +48,21 @@ class inetd::server::xinetd {
# #
class inetd::server::inetd { class inetd::server::inetd {
if versioncmp($::operatingsystemrelease, "5.6") >= 0 {
$source = "/etc/examples/inetd.conf"
} else {
$source = undef
}
file { "/etc/inetd.conf":
ensure => present,
source => $source,
mode => "0644",
owner => "root",
group => "wheel",
replace => false,
}
service { "inetd": service { "inetd":
ensure => running, ensure => running,
start => "/usr/sbin/inetd", start => "/usr/sbin/inetd",
@ -124,6 +139,7 @@ define inetd::service($ensure = present) {
"absent" => "egrep '^${name}[[:space:]]' /etc/inetd.conf", "absent" => "egrep '^${name}[[:space:]]' /etc/inetd.conf",
}, },
path => "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin", path => "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin",
require => File["/etc/inetd.conf"],
notify => Service["inetd"], notify => Service["inetd"],
} }
} }