The host name of {ProjectServer} is used by {ProjectServer} components, all {SmartProxyServers}, and hosts registered to it for communication. This procedure ensures that in addition to renaming {ProjectServer}, you also update all references to point to the new host name.
Warning
|
Renaming your {ProjectServer} host shuts down all {Project} services on that host. The services restart after the renaming is complete. |
-
Back up your {ProjectServer} before changing its host name. If you fail to successfully rename it, restore it from the backup. For more information, see [backing-up-{project-context}-server-and-{smart-proxy-context}_{context}].
-
Run the
hostname
andhostname -f
commands on {ProjectServer}. If both commands do not return the FQDN of {ProjectServer}, the{project-change-hostname}
script will fail to complete.If the
hostname
command returns the shortname of {ProjectServer} instead of the FQDN, usehostnamectl set-hostname My_Old_FQDN
to set the old FQDN correctly before using the{project-change-hostname}
script. -
If {ProjectServer} has a custom SSL certificate installed, obtain a new certificate for the new FQDN of the host. For more information, see {InstallingServerDocURL}configuring-satellite-custom-server-certificate_{project-context}[Configuring {ProjectServer} with a Custom SSL Certificate] in {InstallingServerDocTitle}.
-
On {ProjectServer}, run the
{project-change-hostname}
script, and provide the new host name. Choose one of the following methods:-
If your {ProjectServer} is installed with the default self-signed SSL certificates, enter the following command:
# {project-change-hostname} new-{project-context} \ --username admin \ --password password
-
If your {ProjectServer} is installed with custom SSL certificates:
# {project-change-hostname} new-{project-context} \ --username admin \ --password password \ --custom-cert "/root/ownca/test.com/test.com.crt" \ --custom-key "/root/ownca/test.com/test.com.key"
-
-
If you have created a custom SSL certificate for the new {ProjectServer} host name, run the {Project} installation script to install the certificate. For more information about installing a custom SSL certificate, see {InstallingServerDocURL}Deploying_a_Custom_SSL_Certificate_to_Server_{project-context}[Deploying a Custom SSL Certificate to {ProjectServer}] in {InstallingServerDocTitle}.
-
Reregister all {Project} hosts. For more information, see {ManagingHostsDocURL}Registering_Hosts_managing-hosts[Registering Hosts] in {ManagingHostsDocTitle}.
-
On all {SmartProxyServers}, run the {Project} installation script to update references to the new host name:
# {foreman-installer} \ --foreman-proxy-foreman-base-url https://new-{foreman-example-com} \ --foreman-proxy-trusted-hosts new-{foreman-example-com}
-
On {ProjectServer}, list all {SmartProxyServers}:
# {hammer-smart-proxy} list
-
On {ProjectServer}, synchronize content for each {SmartProxyServer}:
# {hammer-smart-proxy} content synchronize \ --id My{smart-proxy-context}_ID_
-
If you use the virt-who agent, update the virt-who configuration files with the new host name.
-
If you use external authentication, reconfigure {ProjectServer} for external authentication after you run the
{project-change-hostname}
script. For more information, see {InstallingServerDocURL}Configuring_External_Authentication_{project-context}[Configuring External Authentication] in {InstallingServerDocTitle}.