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) {
|
||||
|
||||
case $operatingsystem {
|
||||
centos,fedora,ubuntu,debian: {
|
||||
centos,ubuntu,debian: {
|
||||
service { $name:
|
||||
enable => $ensure ? {
|
||||
present => true,
|
||||
|
@ -84,6 +84,16 @@ define inetd::service($ensure = present) {
|
|||
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: {
|
||||
exec { "enable-inetd-${name}":
|
||||
command => $ensure ? {
|
||||
|
|
Loading…
Add table
Reference in a new issue