From: Jiří Suchomel Date: Thu, 25 Sep 2014 15:01:04 +0000 (+0200) Subject: service_type file not limited to ubuntu X-Git-Tag: v0.8.0~13^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4a2c8b906e7ac686b69ebb62f2907214ad3337bb;p=ceph-cookbooks.git service_type file not limited to ubuntu --- diff --git a/recipes/mon.rb b/recipes/mon.rb index d98c7b5..2a7ccb3 100644 --- a/recipes/mon.rb +++ b/recipes/mon.rb @@ -71,14 +71,12 @@ execute 'ceph-mon mkfs' do command "ceph-mon --mkfs -i #{node['hostname']} --keyring '#{keyring}'" end -# needed only by https://github.com/ceph/ceph/blob/master/src/upstart/ceph-mon-all-starter.conf ruby_block 'finalise' do block do ['done', service_type].each do |ack| ::File.open("/var/lib/ceph/mon/ceph-#{node['hostname']}/#{ack}", 'w').close end end - only_if { node['platform'] == 'ubuntu' } end if service_type == 'upstart'