Adding monitor nodes to the Ceph configuration file

Since we have three monitor nodes, add their details to the ceph_conf_overrides section of the all.yml file:

  1. In ceph-node1 in the /usr/share/ceph-ansible/group_vars directory, edit the ceph_conf_overrides section of the all.yml to reflect the three monitors in the cluster:
  1. Save the updated all.yml file and re-run the playbook from the /usr/share/ceph-ansible directory:
# ansible-playbook site.yml
  1. Validate that the Ceph configuration file has properly updated the monitor nodes in the cluster by viewing the /etc/ceph/ceph.conf file:
The spacing and format of the all.yml file needs to be exactly as seen in the screenshot and example or else when the ansible-playbook is run, it will error out due to improper format.