Fixing puppet-lint errors.

This commit is contained in:
Timo Mkinen 2012-03-27 14:41:39 +03:00
parent 2f83cb7d4a
commit 34c36045fa
59 changed files with 995 additions and 990 deletions

View file

@ -6,15 +6,15 @@
class inetd::server {
case $operatingsystem {
centos,fedora,ubuntu,debian: {
include inetd::server::xinetd
}
openbsd: {
include inetd::server::inetd
}
default: {
fail("Inetd module not supported in ${operatingsystem}")
}
centos,fedora,ubuntu,debian: {
include inetd::server::xinetd
}
openbsd: {
include inetd::server::inetd
}
default: {
fail("Inetd module not supported in ${operatingsystem}")
}
}
}
@ -29,13 +29,13 @@ class inetd::server {
class inetd::server::xinetd {
package { "xinetd":
ensure => installed,
ensure => installed,
}
service { "xinetd":
ensure => running,
enable => true,
require => Package["xinetd"],
ensure => running,
enable => true,
require => Package["xinetd"],
}
}
@ -75,15 +75,15 @@ class inetd::server::inetd {
define inetd::service($ensure = present) {
case $operatingsystem {
centos,fedora,ubuntu,debian: {
service { "${name}":
enable => $ensure ? {
present => true,
absent => false,
},
notify => Service["xinetd"],
}
}
centos,fedora,ubuntu,debian: {
service { $name:
enable => $ensure ? {
present => true,
absent => false,
},
notify => Service["xinetd"],
}
}
openbsd: {
exec { "enable-inetd-${name}":
command => $ensure ? {
@ -98,9 +98,9 @@ define inetd::service($ensure = present) {
notify => Service["inetd"],
}
}
default: {
fail("Inetd module not supported in ${operatingsystem}")
}
default: {
fail("Inetd module not supported in ${operatingsystem}")
}
}
}