The solr database doesn't update quickly enough for our search to
work well on initial bringup.
Instead, fail if we actually have no monitors, but otherwise loop
until our search for a mon with the osd bootstrap key succeeds.
action :upgrade
end
-mons = get_mon_nodes("ceph_bootstrap_osd_key:*")
+mons = get_mon_nodes()
+have_mons = !mons.empty?
+mons = get_mon_nodes("ceph_bootstrap_osd_key")
-if mons.empty? then
+if not have_mons then
puts "No ceph-mon found."
else
+ while mons.empty?
+ sleep(1)
+ mons = get_mon_nodes("ceph_bootstrap_osd_key")
+ end # while mons.empty?
+
directory "/var/lib/ceph/bootstrap-osd" do
owner "root"
group "root"