Skip to content

Commit

Permalink
Allow Apache service not to be managed by Puppet
Browse files Browse the repository at this point in the history
Currently Apache can either configured to be 'running' or 'stopped'. In our cluster setup Apache is managed by Pacemaker, so Puppet should not interfere. Setting ensure to 'UNSET' will now set ensure to undef for the Apache service.
  • Loading branch information
arnoudj committed Apr 1, 2014
1 parent cbcefb1 commit ee1d846
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion manifests/service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,13 @@
}
validate_bool($service_enable)

$_service_ensure = $service_ensure ? {
'UNSET' => undef,
default => $service_ensure,
}

service { 'httpd':
ensure => $service_ensure,
ensure => $_service_ensure,
name => $service_name,
enable => $service_enable,
}
Expand Down

0 comments on commit ee1d846

Please sign in to comment.