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.
Enter all host names as FQDNs.
- 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.
- Wait for DNS replication and zone distribution to occur.
- Log in as root on the master vRealize Automation appliance management interface.
- Click .
- In the Hostname text box, enter the new master host name, and click Save Settings.
- 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.
- 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
- Restart the master vRealize Automation appliance.
- Log in as root on each replica vRealize Automation appliance management interface.
- Click .
- Use Join Cluster to re-join each replica node to the cluster.
- Verify that all authentication connectors are working correctly.
- In DNS, remove the existing DNS record with the old master host name.