When maintaining an environment or network, you might need to assign a different host name to an existing master vRealize Automation appliance.

About this task

In a high availability cluster of vRealize Automation appliances, follow these steps to change the host name of the primary, or master, vRealize Automation appliance node.

Important:

Enter all host names as FQDNs.

Procedure

  1. In DNS, create an additional record with the new master host name.

    Do not remove the existing DNS record with the old host name yet.

  2. Wait for DNS replication and zone distribution to occur.
  3. Log in as root on the master vRealize Automation appliance management interface.

    https://vrealize-automation-appliance-FQDN:5480

  4. Click Network > Address.
  5. In the Hostname text box, enter the new master host name, and click Save Settings.
  6. From a console session as root on the master vRealize Automation appliance, run the following script.

    /usr/lib/vcac/tools/change-hostname/change-hostname_master.sh new-master-hostname old-master-hostname

    Run the script one time for each directory in the current environment. There might be multiple directories per tenant.

    For example, if you have two directories, run the script twice, one after the other.

  7. From a console session as root on the master vRealize Automation appliance, run the following commands.

    sed -i "s/old-master-hostname/new-master-hostname/g" "/etc/haproxy/conf.d/10-psql.cfg" "/etc/haproxy/conf.d/20-vcac.cfg"

    echo new-master-hostname > /usr/local/horizon/conf/flags/sysconfig.hostname

  8. Restart the master vRealize Automation appliance.
  9. Log in as root on each replica vRealize Automation appliance management interface.

    https://vrealize-automation-appliance-FQDN:5480

  10. Click vRA Settings > Cluster.
  11. Use Join Cluster to re-join each replica node to the cluster.
  12. Verify that all authentication connectors are working correctly.
  13. In DNS, remove the existing DNS record with the old master host name.