You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]>
Copy file name to clipboardExpand all lines: modules/administration/pages/troubleshooting/tshoot-hostname-rename.adoc
+25-9Lines changed: 25 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,39 +37,55 @@ This is because the changes have not been made in the database, which prevents t
37
37
38
38
== Rename Server
39
39
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}.
43
42
44
43
45
44
46
45
=== Server Configuration
47
46
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.
49
48
50
-
The only mandatory parameter for the script is the newly configured IP address of the {productname} Server.
51
49
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
52
52
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
+
----
53
61
54
62
.Procedure: Renaming {productname} Server
55
63
. Change the network settings of the server on the system level locally and remotely at the DNS server.
56
64
You also need to provide configuration settings for reverse name resolution.
57
65
Changing network settings is done in the same way as with renaming any other system.
58
66
. 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:
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.
0 commit comments