Skip to content

Commit

Permalink
Enabled undef for service where we dont want puppet control service
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenekjanda committed May 25, 2014
1 parent 5056ecb commit 48c0895
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion manifests/service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,18 @@
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,
Expand Down

0 comments on commit 48c0895

Please sign in to comment.