Managing the cluster configuration file
If you are managing a large cluster, it's good practice to keep your cluster configuration file (/etc/ceph/ceph.conf
) updated with information about cluster MONs, OSDs, MDSs, and RGW nodes. With these entries in place, you can manage all your cluster services from a single node.
How to do it...
ceph-ansible
manages all aspects of the ceph configuration file that we will be using to update our cluster configuration. In order to achieve this, we will be updating the Ceph configuration file using the ceph_conf_overrides
section of the /etc/ansible/group_vars/all.yml
file and will be adding the details of all MON, OSD, and MDS nodes. Ansible supports the same sections as the Ceph configuration file: [global]
, [mon]
, [osd]
, [mds]
, [rgw]
, and so on.
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:
- In
ceph-node1
in the/usr/share/ceph-ansible/group_vars...