Rate This Document
Findability
Accuracy
Completeness
Readability

Configuring the Deployment Environment

To facilitate subsequent configuration operations on different nodes, change the host names and mappings on all nodes.

  1. Set the host name of each node.

    Management node:

    hostnamectl set-hostname controller
    hostnamectl --transient set-hostname controller
    echo "controller" > /etc/hostname

    Compute node:

    hostnamectl set-hostname compute
    hostnamectl --transient set-hostname compute
    echo "compute" > /etc/hostname

    After the change, log in to the OS again for the change to take effect.

  2. Modify the /etc/hosts files on all nodes.
    1. Open the file.
      vi /etc/hosts
    2. Press i to enter the insert mode and add the following content:
      IP address of the management node controller
      IP address of the compute node compute
    1. Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.