Chapter 18. Migrate to a new load balancer, or change the name of an existing load balancer
Follow this procedure to change the host name of the load balancer in an already running Red Hat Update Infrastructure (RHUI) environment.
Procedure
Stop
pulp
services.# systemctl stop pulp_\*
Remove the content delivery server (CDS) certificate files from the Red Hat Update Appliance (RHUA).
# rm -f /etc/puppet/rhui-secrets/cds-cert.*
Run
rhui-manager
with the new load balancer host name, for example:# rhui-installer --cds-lb-hostname=hap02.example.com
NoteUse any other necessary arguments if you do not want their initial or default values as indicated by the answers file.
Add the new load balancer to the RHUI environment, either in the interactive mode (
rhui-manager - l - a - …
) or in the CLI. For the CLI, use the following example:# rhui haproxy add hap02.example.com ec2-user /root/.ssh/id_rsa_rhua -u
NoteConsider unregistering the old load balancer at the same time.
Reapply the CDS configuration to all of your CDS nodes, either in the interactive mode (
rhui-manager - c - r - …
) or in the CLI. For the CLI, use the following example"# rhui cds reinstall cds01.example.com
Create an updated client configuration RPM. This can be done in the interactive mode (
rhui-manager - e - c - …`
) or in the CLI. For the CLI, use the following example:# rhui-manager client rpm --private_key /root/rhui.key --entitlement_cert /root/rhui.crt --rpm_version 2.1 --rpm_name rhui-repos --dir /root/
NoteUse the files and the RPM name that you created in Chapter 10, Client entitlement certificate and client configuration RPM.
Procedure
- Update the client configuration RPM on all your clients.