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, running => true,
absent => false, absent => false,
stopped => false, stopped => false,
'undef' => undef,
default => true, default => true,
} }
if $service_ensure == 'undef' {
$service_ensure_real = undef
} else {
$service_ensure_real = $service_ensure
}
service { 'nginx': service { 'nginx':
ensure => $service_ensure, ensure => $service_ensure_real,
enable => $service_enable, enable => $service_enable,
hasstatus => true, hasstatus => true,
hasrestart => true, hasrestart => true,