Skip to content

Commit

Permalink
Merge pull request redhat-openstack#26 from cristifalcas/manage_systemd
Browse files Browse the repository at this point in the history
manage systemd unit files optionally
  • Loading branch information
deric committed Sep 16, 2015
2 parents 08a9365 + b91d9b4 commit 3365261
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,12 @@
$java_package = undef,
$min_session_timeout = undef,
$max_session_timeout = undef,
$manage_systemd = true,
) {

validate_array($packages)
validate_bool($ensure_cron)
validate_bool($manage_systemd)

anchor { 'zookeeper::start': }->
class { 'zookeeper::install':
Expand Down
2 changes: 1 addition & 1 deletion manifests/service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
default: { $initstyle = 'unknown' }
}

if ($initstyle == 'systemd') {
if ($initstyle == 'systemd' and $zookeeper::manage_systemd) {
file { '/usr/lib/systemd/system/zookeeper.service':
ensure => 'present',
content => template('zookeeper/zookeeper.service.erb'),
Expand Down

0 comments on commit 3365261

Please sign in to comment.