Puppet-lint fixes.
This commit is contained in:
parent
75d1fcd4e9
commit
eb0e9417ee
5 changed files with 34 additions and 28 deletions
|
@ -5,15 +5,15 @@
|
|||
#
|
||||
class inetd::server {
|
||||
|
||||
case $operatingsystem {
|
||||
centos,fedora,ubuntu,debian: {
|
||||
case $::operatingsystem {
|
||||
"centos","fedora","ubuntu","debian": {
|
||||
include inetd::server::xinetd
|
||||
}
|
||||
openbsd: {
|
||||
"openbsd": {
|
||||
include inetd::server::inetd
|
||||
}
|
||||
default: {
|
||||
fail("Inetd module not supported in ${operatingsystem}")
|
||||
fail("Inetd module not supported in ${::operatingsystem}")
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -76,8 +76,8 @@ define inetd::service($ensure = present) {
|
|||
|
||||
include inetd::server
|
||||
|
||||
case $operatingsystem {
|
||||
centos,ubuntu,debian: {
|
||||
case $::operatingsystem {
|
||||
"centos","ubuntu","debian": {
|
||||
service { $name:
|
||||
enable => $ensure ? {
|
||||
present => true,
|
||||
|
@ -86,7 +86,7 @@ define inetd::service($ensure = present) {
|
|||
notify => Service["xinetd"],
|
||||
}
|
||||
}
|
||||
fedora: {
|
||||
"fedora": {
|
||||
augeas { "config-inetd-${name}":
|
||||
context => "/files/etc/xinetd.d/${name}/service",
|
||||
changes => $ensure ? {
|
||||
|
@ -96,7 +96,7 @@ define inetd::service($ensure = present) {
|
|||
notify => Service["xinetd"],
|
||||
}
|
||||
}
|
||||
openbsd: {
|
||||
"openbsd": {
|
||||
exec { "enable-inetd-${name}":
|
||||
command => $ensure ? {
|
||||
"present" => "ruby -pi -e 'sub(/^#${name}(\\s+)/, \"${name}\\\\1\")' /etc/inetd.conf",
|
||||
|
@ -111,7 +111,7 @@ define inetd::service($ensure = present) {
|
|||
}
|
||||
}
|
||||
default: {
|
||||
fail("Inetd module not supported in ${operatingsystem}")
|
||||
fail("Inetd module not supported in ${::operatingsystem}")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue