This handles the case where ceph-mon already started, already read a
mon_host from ceph.conf, but more nodes (needed for initial quorum)
had the ceph-mon role added to them after the fact, and thus weren't
in mon_host at startup time.
notifies :start, "service[ceph-mon-all-starter]", :immediately
end
+ruby_block "tell ceph-mon about its peers" do
+ block do
+ mon_addresses = get_mon_addresses()
+ mon_addresses.each do |addr|
+ system 'ceph', \
+ '--admin-daemon', "/var/run/ceph/ceph-mon.#{node['hostname']}.asok", \
+ 'add_bootstrap_peer_hint', "#{addr}"
+ # ignore errors
+ end
+ end
+end
+
ruby_block "create client.admin keyring" do
block do
if not ::File.exists?('/etc/ceph/ceph.client.admin.keyring') then