Enabled undef for service where we dont want puppet control service
This commit is contained in:
parent
5056ecb899
commit
48c0895423
1 changed files with 8 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue