Show Table of Contents
5.4. Renaming a Satellite Server or Capsule Server
Renaming a Satellite Server or Capsule Server requires use of the
katello-change-hostname script. Red Hat Satellite contains references to the host's name and these changes are made using the script. Renaming a Satellite Server affects itself, all Capsule Servers and all hosts registered to it. Renaming a Capsule Server affects itself and all hosts registered to it.
Warning
The renaming process shuts down all Satellite Server services on the host being renamed. When the renaming is complete, all services are restarted.
Warning
Do not change the system host name of your Satellite Server before running the
katello-change-hostname script. If the system host name has been changed before running this script, the script will fail when searching for the old host name.
5.4.1. Renaming a Satellite Server
The host name of a Satellite Server is used by Satellite Server components, all Capsule Servers, and hosts registered to it for communication. Renaming a Satellite Server requires that these references be updated.
Prerequisites
- (Optional) If the Satellite Server has a custom X.509 certificate installed, a new certificate must be obtained in the host's new name. When all hosts are re-registered to the Satellite Server, the new certificate is installed. For more information on obtaining a custom X.509 certificate, see Configuring Satellite Server with a Custom Server Certificate in the Installation Guide.
- Ensure the system host name has not been changed before running the
katello-change-hostnamescript. If the system host name has been changed, you must revert it to the original host name by using thehostnamectl set-hostnamecommand. - Backup the Satellite Server. The
katello-change-hostnamescript makes irreversible changes to the Satellite Server. If the renaming process is not successful, you must restore it from backup. For more information, see Chapter 5, Backup and Disaster Recovery.
Procedure 5.8. Rename a Satellite Server
- On the Satellite Server, run the
katello-change-hostnamescript, providing the host's new name, and Satellite credentials.# katello-change-hostname new_satellite --username admin \ --password password
The message**** Hostname change complete! ****confirms that the rename completed successfully. - (Optional) If you have obtained a new X.509 certificate for the Satellite Server's new host name, run the Satellite installation script to install the certificate. For more information on installing a custom X.509 certificate, see Configuring Satellite Server with a Custom Server Certificate in the Installation Guide.
- On all Capsule Servers and hosts registered to the Satellite Server, reinstall the bootstrap RPM and re-register them to the Satellite Server. Substitute the example organization and environment values with those matching your environment.
# yum remove -y katello-ca-consumer*
# rpm -Uvh http://new-satellite.example.com/pub/katello-ca-consumer-latest.noarch.rpm
# subscription-manager register --org="Default_Organization" \ --environment="Library" \ --force
Use of the Red Hat Satellite remote execution feature is recommended for this step. For details, see Running Jobs on Satellite Hosts in the Host Configuration Guide. - Reattach subscriptions to all Capsule Servers and hosts registered to the Satellite Server, then refresh the subscription.
# subscription-manager refresh
# yum repolist
Use of the Red Hat Satellite remote execution feature is recommended for this step. For details, see Running Jobs on Satellite Hosts in the Host Configuration Guide. - On all Capsule Servers, re-run the Satellite installation script to update references to the new host name.
# satellite-installer --capsule-parent-fqdn new-satellite.example.com \ --foreman-proxy-foreman-base-url https://new-satellite.example.com \ --foreman-proxy-trusted-hosts new-satellite.example.com
5.4.2. Renaming a Capsule Server
The host name of a Capsule Server is referenced by Satellite Server components, and all hosts registered to it. Renaming a Capsule Server requires that these references be updated.
Prerequisites
- (Optional) New X.509 custom certificate files for the Capsule Server. For more information on obtaining a custom X.509 certificate, see Configuring Capsule Server with a Custom Server Certificate in the Installation Guide.
- Backup the Capsule Server. The
katello-change-hostnamescript makes irreversible changes to the Capsule Server. If the renaming process is not successful, you must restore it from backup.Red Hat Satellite does not provide a native backup method for a Capsule Server. For more information, see Chapter 5, Backup and Disaster Recovery.
Procedure 5.9. Rename a Capsule Server
- On the Satellite Server, create a new certificates archive file.
- If you are using the default Satellite Server certificate:
# capsule-certs-generate --capsule-fqdn "new-capsule.example.com" \ --certs-tar "new-capsule.example.com-certs.tar"
- If you are using a custom X.509 certificate on the Capsule Server, see Create the Capsule Server's Certificate Archive File in the Installation Guide.
- On the Satellite Server, copy the certificates archive file to the Capsule Server, providing the
rootuser’s password when prompted. In this example the archive file is copied to therootuser’s home directory, but you may prefer to copy it elsewhere.# scp /root/new-capsule.example.com-certs.tar root@capsule.example.com:
- On the Capsule Server, run the
katello-change-hostnamescript, providing the host's new name, Satellite credentials, and certificates archive filename.# katello-change-hostname new_capsule --username admin \ --password password \ --certs-tar new-capsule.example.com-certs.tar
The message**** Hostname change complete! ****confirms that the rename completed successfully. - (Optional) If you have obtained a new X.509 certificate in the Capsule Server's new host name, run the Satellite installation script to install the certificate. For more information on installing a custom X.509 certificate, see Configuring Satellite Server with a Custom Server Certificate in the Installation Guide.
- On all hosts registered to the Capsule Server, reinstall the bootstrap RPM and re-register them to the Capsule Server. Substitute the example organization and environment values with those matching your environment.
# yum remove -y katello-ca-consumer*
# rpm -Uvh http://new-capsule.example.com/pub/katello-ca-consumer-latest.noarch.rpm
# subscription-manager register --org="Default_Organization" \ --environment="Library" \ --force
Use of the Red Hat Satellite remote execution feature is recommended for this step. For details, see Running Jobs on Satellite Hosts in the Host Configuration Guide. - Reattach subscriptions to all hosts registered to the Capsule Server, then refresh the subscription.
# subscription-manager refresh
# yum repolist
Use of the Red Hat Satellite remote execution feature is recommended for this step. For details, see Running Jobs on Satellite Hosts in the Host Configuration Guide. - Edit the Capsule Server's name.
- In the Satellite web UI, navigate to → .
- Find the Capsule Server in the list, and click in that row.
- Edit the Name and URL fields to match the Capsule Server's new host name, then click .
- On your DNS server, add a record for the Capsule Server's new host name, and delete the record for the previous host name.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.