Rename Uyuni Server

It is possible to rename a Uyuni Server. Begin by changing the network settings of the server locally and remotely. Then use the spacewalk-hostname-rename script to update the settings in the PostgreSQL database and the internal structures of Uyuni.

The spacewalk-hostname-rename script is part of the spacewalk-utils package.

The only mandatory parameter for the script is the newly configured IP address of the Uyuni Server.

Procedure: Renaming Uyuni Server
  1. Change the network settings of the server on the system level locally and remotely at the DNS server. Provide configuration settings for reverse name resolution, too. Changing network settings is done in the same way as with renaming any other system.

  2. Reboot the Uyuni Server to use the new network configuration and to ensure the hostname has changed.

  3. Run the script spacewalk-hostname-rename script with the public IP address of the server. If the server is not using the new hostname, the script will fail.

  4. Some other actions are needed to make your environment aware of the new hostname and IP address. Re-configure your clients. For background information, see client-configuration:registration-cli.adoc.

    In the Salt minion configuration file /etc/salt/minion, you must make sure to specify the name of the new Salt master (Uyuni Server):

    master: <new_hostname>

    Traditional clients have the /etc/sysconfig/rhn/up2date configuration file that must be changed. With a re-activation key you can re-register traditional clients (if there are any).

  5. OPTIONAL: If you use PXE boot through a Uyuni Proxy, you must check the configuration settings of the proxy. On the proxy, run the configure-tftpsync.sh setup script and enter the requested information. For more information, see installation:proxy-setup.adoc.