|
1 | 1 | [id="upgrading_{smart-proxy-context}_server_{context}"] |
2 | 2 | = Upgrading {SmartProxyServers} |
3 | 3 |
|
4 | | -ifdef::katello,orcharhino,satellite[] |
| 4 | +ifdef::satellite[] |
5 | 5 | After you have upgraded your {ProjectServer} and synchronized the required repositories, you can start upgrading your {SmartProxyServers}. |
6 | 6 | endif::[] |
7 | | -ifndef::katello,orcharhino,satellite[] |
| 7 | +ifndef::satellite[] |
8 | 8 | After you have upgraded your {ProjectServer}, you can start upgrading your {SmartProxyServers}. |
9 | 9 | endif::[] |
10 | 10 |
|
11 | | -.Prerequisites |
12 | | -ifdef::katello,orcharhino,satellite[] |
13 | | -* If you use content views to control updates to the {SmartProxyServer} base operating system or repository, update those content views with new repositories, then publish and promote their updated versions. |
14 | | -For more information, see {ContentManagementDocURL}Managing_Content_Views_content-management[Managing content views] in _{ContentManagementDocTitle}_. |
15 | | -* Ensure the base system of the {SmartProxy} is registered to the newly upgraded {ProjectServer}. |
16 | | -endif::[] |
17 | | -* If you implemented custom certificates, you must retain the content of both the `/root/ssl-build` directory and the directory in which you created any source files associated with your custom certificates. |
18 | | -ifdef::katello,orcharhino,satellite[] |
19 | | -+ |
20 | | -[WARNING] |
| 11 | +ifndef::foreman-deb[] |
| 12 | +[NOTE] |
21 | 13 | ==== |
22 | | -Failure to retain these files during an upgrade causes the upgrade to fail. |
23 | | -If these files have been deleted, they must be restored from a backup in order for the upgrade to proceed. |
| 14 | +You can use the *{SmartProxy} Upgrade Playbook* job template to upgrade {SmartProxyServer}s remotely. |
| 15 | +For more information about running remote jobs based on templates, see {ManagingHostsDocURL}Configuring_and_Setting_Up_Remote_Jobs_managing-hosts[Configuring and setting up remote jobs] in _{ManagingHostsDocTitle}_. |
24 | 16 | ==== |
25 | 17 | endif::[] |
26 | 18 |
|
27 | | -.Upgrading {SmartProxyServers} |
28 | | -. Create a backup. |
29 | | -+ |
30 | | -* On a virtual machine, take a snapshot. |
31 | | -* On a physical machine, create a backup. |
32 | | -+ |
33 | | -For information on backups, see {AdministeringDocURL}backing-up-{project-context}-server-and-{smart-proxy-context}_admin[Backing Up {ProjectServer} and {SmartProxyServer}] in _{AdministeringDocTitle}_. |
34 | | - |
35 | | -ifdef::foreman-el,katello[] |
36 | | -. Update repositories: |
37 | | -+ |
38 | | -[options="nowrap" subs="attributes"] |
39 | | ----- |
40 | | -ifdef::katello[] |
41 | | -# {project-package-update} https://yum.theforeman.org/releases/{ProjectVersion}/el9/x86_64/foreman-release.rpm \ |
42 | | -https://yum.theforeman.org/katello/{KatelloVersion}/katello/el9/x86_64/katello-repos-latest.rpm |
| 19 | +.Prerequisites |
| 20 | +* The base system of the {SmartProxy} is registered to the newly upgraded {ProjectServer}. |
| 21 | +ifdef::katello,orcharhino[] |
| 22 | +* If you use content views to control updates to the base operating system of {SmartProxyServer}, ensure these content views are up-to-date with the new repositories. |
43 | 23 | endif::[] |
44 | | -ifdef::foreman-el[] |
45 | | -# {project-package-update} https://yum.theforeman.org/releases/{ProjectVersion}/el9/x86_64/foreman-release.rpm |
| 24 | +ifdef::satellite[] |
| 25 | +* If you use content views to control updates to the base operating system of {SmartProxyServer}, ensure these content views are up-to-date with the new repositories synchronized in xref:synchronizing_the_new_repositories_{context}[]. |
46 | 26 | endif::[] |
47 | | ----- |
48 | | -. Stop {SmartProxy} services: |
49 | | -+ |
50 | | -[options="nowrap" subs="attributes"] |
51 | | ----- |
52 | | -# {foreman-maintain} service stop |
53 | | ----- |
54 | | -. Update the required packages: |
55 | | -+ |
56 | | -[options="nowrap" subs="attributes"] |
57 | | ----- |
58 | | -# {project-package-update} |
59 | | ----- |
60 | | -. Run the installer: |
61 | | -+ |
62 | | -[options="nowrap" subs="attributes"] |
63 | | ----- |
64 | | -# {foreman-installer} |
65 | | ----- |
| 27 | +ifdef::katello,orcharhino,satellite[] |
| 28 | +This involves updating the content views and publishing and promoting the updated versions of the content views. |
| 29 | +For more information, see {ContentManagementDocURL}Managing_Content_Views_content-management[Managing content views] in _{ContentManagementDocTitle}_. |
66 | 30 | endif::[] |
67 | | -ifdef::satellite[] |
68 | | -. Clean yum cache: |
69 | | -+ |
70 | | ----- |
71 | | -# yum clean metadata |
72 | | ----- |
73 | | -. Synchronize the `{RepoRHEL9ServerSatelliteCapsuleProjectVersion}` repository in the {ProjectServer}. |
74 | | -. Publish and promote a new version of the content view with which the {SmartProxy} is registered. |
75 | | -. Optional: Because of the lengthy upgrade time, use a utility such as `tmux` to suspend and reattach a communication session. |
76 | | -You can then check the upgrade progress without staying connected to the command shell continuously. |
77 | | -+ |
78 | | -If you lose connection to the command shell where the upgrade command is running, you can see the logged messages in the `{installer-smartproxy-log-file}` file to check if the process completed successfully. |
79 | | -. The `rubygem-foreman_maintain` is installed from the {Project} Maintenance repository or upgraded from the {Project} Maintenance repository if currently installed. |
80 | | -+ |
81 | | -Ensure that the {Project} Maintenance repository is enabled: |
82 | | -+ |
83 | | -[options="nowrap" subs="attributes"] |
84 | | ----- |
85 | | -# subscription-manager repos --enable \ |
86 | | -{RepoRHEL9ServerSatelliteMaintenanceProjectVersion} |
87 | | ----- |
88 | | -+ |
89 | | -Ensure {SmartProxy} has access to `{RepoRHEL9ServerSatelliteMaintenanceProjectVersion}` and execute: |
90 | | -+ |
91 | | -[options="nowrap" subs="attributes"] |
92 | | ----- |
93 | | -# {foreman-maintain} self-upgrade |
94 | | ----- |
95 | 31 |
|
96 | | -. On {SmartProxyServer}, verify that the `foreman_url` setting points to the {Project} FQDN: |
97 | | -+ |
98 | | ----- |
99 | | -# grep foreman_url /etc/foreman-proxy/settings.yml |
100 | | ----- |
101 | | -. Use the health check option to determine if the system is ready for upgrade: |
102 | | -+ |
103 | | -[options="nowrap" subs="attributes"] |
104 | | ----- |
105 | | -# {foreman-maintain} upgrade check |
106 | | ----- |
107 | | -+ |
108 | | -Review the results and address any highlighted error conditions before performing the upgrade. |
109 | | -. Perform the upgrade: |
110 | | -+ |
111 | | -[options="nowrap" subs="attributes"] |
112 | | ----- |
113 | | -# {foreman-maintain} upgrade run |
114 | | ----- |
115 | | -+ |
| 32 | +.Procedure |
| 33 | +ifdef::foreman-deb[] |
| 34 | +[tabs] |
| 35 | +===== |
| 36 | +Debian 12 (Bookworm):: |
| 37 | ++ |
| 38 | +-- |
| 39 | +:distribution-codename: bookworm |
| 40 | +include::snip_upgrading-smartproxy-server.adoc[] |
| 41 | +-- |
| 42 | +Ubuntu 22.04 (Jammy):: |
| 43 | ++ |
| 44 | +-- |
| 45 | +:distribution-codename: jammy |
| 46 | +include::snip_upgrading-smartproxy-server.adoc[] |
| 47 | +-- |
| 48 | +===== |
| 49 | +endif::[] |
| 50 | +ifndef::foreman-deb[] |
| 51 | +include::snip_upgrading-smartproxy-server.adoc[] |
116 | 52 | endif::[] |
117 | | -include::snip_steps-needs-reboot.adoc[] |
118 | | -. Optional: If you made manual edits to DNS or DHCP configuration files, check and restore any changes required to the DNS and DHCP configuration files using the backups made earlier. |
119 | | - |
120 | | -.Upgrading {SmartProxyServers} using remote execution |
121 | | -. Create a backup or take a snapshot. |
122 | | -+ |
123 | | -For more information on backups, see {AdministeringDocURL}backing-up-satellite-server-and-capsule-server[Backing Up {ProjectServer} and {SmartProxyServer}] in _{AdministeringDocTitle}_. |
124 | | -. In the {ProjectWebUI}, navigate to *Monitor* > *Jobs*. |
125 | | -. Click *Run Job*. |
126 | | -. From the *Job category* list, select *Maintenance Operations*. |
127 | | -. From the *Job template* list, select *{SmartProxy} Upgrade Playbook*. |
128 | | -. In the *Search Query* field, enter the host name of the {SmartProxy}. |
129 | | -. Ensure that *Apply to 1 host* is displayed in the *Resolves to* field. |
130 | | -. In the *target_version* field, enter the target version of the {SmartProxy}. |
131 | | -. In the *whitelist_options* field, enter the options. |
132 | | -. Select the schedule for the job execution in *Schedule*. |
133 | | -. In the *Type of query* section, click *Static Query*. |
0 commit comments