Merge pull request #319 from cloudevelops/master
Enabled undef for service where we dont want puppet control service
This commit is contained in:
commit
99df70b3dd
1 changed files with 8 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue