end
end
+have_key = ::File.exists?('/etc/ceph/ceph.client.admin.keyring')
+
ruby_block "wait until quorum is formed" do
block do
- if not have_quorum? then
+ if not have_key and not have_quorum? then # so, our first run and we have no quorum
#sleep
sleep(1)
end
ruby_block "create client.admin keyring" do
block do
- if not ::File.exists?('/etc/ceph/ceph.client.admin.keyring') then
+ if not have_key then
if not have_quorum? then
puts 'ceph-mon is not in quorum, skipping bootstrap-osd key generation for this run'
else