Enabled undef for service where we dont want puppet control service

This commit is contained in:
Zdenek Janda 2014-05-25 12:03:53 +02:00
parent 5056ecb899
commit 48c0895423

View file

@ -23,11 +23,18 @@ class nginx::service(
running => true,
absent => false,
stopped => false,
'undef' => undef,
default => true,
}
if $service_ensure == 'undef' {
$service_ensure_real = undef
} else {
$service_ensure_real = $service_ensure
}
service { 'nginx':
ensure => $service_ensure,
ensure => $service_ensure_real,
enable => $service_enable,
hasstatus => true,
hasrestart => true,