Merge pull request #319 from cloudevelops/master

Enabled undef for service where we dont want puppet control service
This commit is contained in:
James Fryman 2014-06-04 11:44:05 +02:00
commit 99df70b3dd

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,