Configuring the cluster virtual IP address
Use this procedure to configure a host with the IPv4 address of the high-availability cluster (HA-Virtual-IP). The following configuration variable specifies the address:
- Default: (none)
- The IPv4 address that delegates use to connect to the master host. When no address is specified, serviced attempts to discover its public IP address by pinging google.com.
- This variable must be set on all Control Center hosts in either of the following scenarios:
- Control Center is deployed behind a firewall and google.com is not reachable. Set the value to the IPv4 address of the master host.
- Control Center is deployed in a high-availability cluster. Set the value to the virtual IPv4 address of the high-availability cluster (HA-Virtual-IP).
Perform these steps:
- Log in to the host as root, or as a user with superuser privileges.
Edit the Control Center configuration file.
- Open /etc/default/serviced in a text editor.
- Locate the line for the SERVICED_OUTBOUND_IP variable, and then make a copy of the line, immediately below the original.
- Remove the number sign character (#) from the beginning of the line.
- Change the value to the virtual IP address of the high-availability cluster (HA-Virtual-IP).
- Save the file, and then close the editor.
Verify the settings in the serviced configuration file.
grep -E '^\b*[A-Z_]+' /etc/default/serviced