Skip to content

Commit

Permalink
manage systemd unit files optionally
Browse files Browse the repository at this point in the history
  • Loading branch information
cristifalcas committed Jul 22, 2015
1 parent 2617a4e commit de8c916
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 $manage_systemd) {
file { '/usr/lib/systemd/system/zookeeper.service':
ensure => 'present',
content => template('zookeeper/zookeeper.service.erb'),
Expand Down

0 comments on commit de8c916

Please sign in to comment.