You require the IP address of the nodes you want to edit, including the Global Controller and Worker Nodes. For high availability (HA) deployments, this includes the two HA nodes, and the Load Balancer nodes.
A user account with passwordless sudo privileges configured is required to configure Bare Metal Orchestrator nodes. For more information about the common user account and passwordless sudo privileges, see Software and node requirements.
Note: We recommend revoking passwordless sudo privileges for the common user account after the Bare Metal Orchestrator installation is complete and the cluster nodes are configured, including worker nodes.
- Establish a CLI session on the server that has the Bare Metal Orchestrator installed and log in.
- Change the directory to mw-bundle.
cd mw-bundle
- Using an editor such as Vim, edit the hosts.ini file.
vim inventory/my-cluster/hosts.ini
- Update the IP address of the nodes.
- The GC node is bmo-manager-1.
- The two redundant HA node hostnames are bmo-manager-2 and bmo-manager-3.
- The load balancer hostnames in this example are bmo-manager-lb1 and bmo-manager-lb2.
The following is an example
hosts.ini file for a high availability deployment that uses internal distributed storage. IP address variables to be replaced with actual IP addresses are identified with angle brackets. For example:
<bmo-manager-1 IP>
.
[global_controller]
<bmo-manager-1 IP>
[ha]
<bmo-manager-2 IP>
<bmo-manager-3 IP>
[loadbalancer]
<bmo-manager-lb1 IP>
<bmo-manager-lb2 IP>
[node]
<Worker node 1 IP>
<Worker node 2 IP>
[node-remove]
<Worker node 1 IP>
<Worker node 2 IP>
[hosts] ;; this is IP for a five-node HA with internal storage and two worker nodes
<bmo-manager-1 IP> ansible_python_interpreter=/usr/bin/python3
<bmo-manager-2 IP> ansible_python_interpreter=/usr/bin/python3
<bmo-manager-3 IP> ansible_python_interpreter=/usr/bin/python3
<bmo-manager-1b1 IP> ansible_python_interpreter=/usr/bin/python3
<bmo-manager-1b2 IP> ansible_python_interpreter=/usr/bin/python3
<Worker node 1 IP> ansible_python_interpreter=/usr/bin/python3
<Worker node 2 IP> ansible_python_interpreter=/usr/bin/python3
- Save the file and quit the editor.