inetd: Added support for OpenBSD 5.6.
This commit is contained in:
parent
64df8260c7
commit
bb84d8b7da
1 changed files with 16 additions and 0 deletions
|
@ -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"],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue