Skip to content

Commit

Permalink
Merge pull request #319 from cloudevelops/master
Browse files Browse the repository at this point in the history
Enabled undef for service where we dont want puppet control service
  • Loading branch information
James Fryman committed Jun 4, 2014
2 parents 4bc07a4 + 48c0895 commit 99df70b
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 99df70b

Please sign in to comment.