Skip to content

Commit

Permalink
only create zookeper service if it does not exist - e.g. when zookeep…
Browse files Browse the repository at this point in the history
…er is installed from cdh5-el6; in case of using mesosphere repo which has an centos7 el7 package for zookeeper - the service is created properly and the template would break zookeeper installation if applied to replace the existing service file.
  • Loading branch information
cornelf committed Sep 4, 2015
1 parent 2617a4e commit c5d997f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions manifests/service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
file { '/usr/lib/systemd/system/zookeeper.service':
ensure => 'present',
content => template('zookeeper/zookeeper.service.erb'),
replace => "no"
} ~>
exec { 'systemctl daemon-reload # for zookeeper':
refreshonly => true,
Expand Down

0 comments on commit c5d997f

Please sign in to comment.