Fixed inetd::service for Fedora 16.
This commit is contained in:
parent
6602c319e8
commit
7898c4ebf8
1 changed files with 11 additions and 1 deletions
|
@ -75,7 +75,7 @@ class inetd::server::inetd {
|
||||||
define inetd::service($ensure = present) {
|
define inetd::service($ensure = present) {
|
||||||
|
|
||||||
case $operatingsystem {
|
case $operatingsystem {
|
||||||
centos,fedora,ubuntu,debian: {
|
centos,ubuntu,debian: {
|
||||||
service { $name:
|
service { $name:
|
||||||
enable => $ensure ? {
|
enable => $ensure ? {
|
||||||
present => true,
|
present => true,
|
||||||
|
@ -84,6 +84,16 @@ define inetd::service($ensure = present) {
|
||||||
notify => Service["xinetd"],
|
notify => Service["xinetd"],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
fedora: {
|
||||||
|
augeas { "config-inetd-${name}":
|
||||||
|
context => "/files/etc/xinetd.d/${name}/service",
|
||||||
|
changes => $ensure ? {
|
||||||
|
"present" => "set disable no",
|
||||||
|
"absent" => "set disable yes",
|
||||||
|
},
|
||||||
|
notify => Service["xinetd"],
|
||||||
|
}
|
||||||
|
}
|
||||||
openbsd: {
|
openbsd: {
|
||||||
exec { "enable-inetd-${name}":
|
exec { "enable-inetd-${name}":
|
||||||
command => $ensure ? {
|
command => $ensure ? {
|
||||||
|
|
Loading…
Add table
Reference in a new issue