Skip to content

Commit 4a730d2

Browse files
cbosdoKarl Eichwalderjcayouette
authored
Fix the documentation on how to rename the server (bsc#1229825) (#3964)
* Fix the documentation on how to rename the server (bsc#1229825) * Update CHANGELOG.md --------- Co-authored-by: Karl Eichwalder <[email protected]> Co-authored-by: Joseph Cayouette <[email protected]>
1 parent 6905007 commit 4a730d2

File tree

2 files changed

+27
-9
lines changed

2 files changed

+27
-9
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
- Fix the hostname rename page for containers in Troubleshooting of
2+
Administration Guide (bsc#1229825)
13
- Documented to use the same CA password during migrating from 4.3
24
in Installation and Upgrade Guide (bsc#1247296)
35
- Added note about onboarding CentOS 7 clients with repositories

modules/administration/pages/troubleshooting/tshoot-hostname-rename.adoc

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,39 +37,55 @@ This is because the changes have not been made in the database, which prevents t
3737

3838
== Rename Server
3939

40-
41-
If you need to change the hostname of the {productname} Server, you can do so using the [command]``spacewalk-hostname-rename`` script.
42-
This script updates the settings in the {postgresql} database and the internal structures of {productname}.
40+
If you need to change the hostname of the {productname} Server, you can do so using the [command]``mgradm server rename`` command.
41+
This command updates the settings in the {postgresql} database and the internal structures of {productname}.
4342

4443

4544

4645
=== Server Configuration
4746

48-
The [command]``spacewalk-hostname-rename`` script is part of the [package]``spacewalk-utils`` package.
47+
The command takes no mandatory parameter, but can take the new hostname if it is not the one from the container host.
4948

50-
The only mandatory parameter for the script is the newly configured IP address of the {productname} Server.
5149

50+
In case any SSL certificate needs to be generated to match the new hostname, the SSL CA password needs to be provided.
51+
This is safely achieved using a configuration file
5252

53+
.Procedure: Prepare the configuration file for the SSL CA password
54+
. Write a [path]``config.yaml`` file with content like the following:
55+
+
56+
[source,shell]
57+
----
58+
ssl:
59+
password: "<THE CA PASSWORD>"
60+
----
5361

5462
.Procedure: Renaming {productname} Server
5563
. Change the network settings of the server on the system level locally and remotely at the DNS server.
5664
You also need to provide configuration settings for reverse name resolution.
5765
Changing network settings is done in the same way as with renaming any other system.
5866
. Reboot the {productname} Server to use the new network configuration and to ensure the hostname has changed.
59-
. On the container host, from the command line, execute the following command to configure the public IP address of the server:
67+
. On the container host, from the command line, execute the following command. Add [command]``-c config.yaml`` if you created the file to store the SSL CA password:
6068

6169
+
6270

6371
[source,shell]
6472
----
65-
mgrctl exec -ti -- spacewalk-hostname-rename <PUBLIC_IP_ADDRESS>
73+
mgradm server rename
6674
----
6775

6876
+
6977

70-
If the server is not using the new hostname, the script fails.
71-
Be aware that this script refreshes the pillar data for all {salt} clients: the time it takes to run depends on the number of registered clients.
78+
If the new hostname is not resolvable, the command fails.
79+
80+
The renaming procedure also takes place during the restart of the server container.
81+
The logs can be found by running this command:
82+
83+
[source,shell]
84+
----
85+
mgrctl exec -ti -- journalctl -u uyuni-update-config
86+
----
7287

88+
Be aware that this command triggers a refresh of the pillar data for all {salt} clients when restarting the server container: the time it takes to run depends on the number of registered clients.
7389

7490

7591
=== Directly Managed Clients Reconfiguration

0 commit comments

Comments
 (0)