Este conteúdo não está disponível no idioma selecionado.
Chapter 3. Managing alternate content sources
Alternate content sources (ACS) define alternate paths to download content during synchronization. The content itself is downloaded from the alternate content source, while the metadata is downloaded from the Satellite Server or the upstream URL, depending on the configuration. You can use alternate content sources to speed up synchronization if the content is located on the local filesystem or on a nearby network. You can set up alternate content sources for Satellite Server and Capsule Servers.
You must refresh the alternate content source after creation or after making any changes. A weekly cron job refreshes all alternate content sources. You can also refresh the alternate content sources manually by using the Satellite web UI or Hammer CLI. Alternate content sources associated with your Satellite Server, or Capsule Servers attached to multiple organizations, affect all organizations.
There are three types of alternate content sources:
- Custom
- Custom alternate content sources download the content from any upstream repository on the network or filesystem.
- Simplified
- Simplified alternate content sources copy the upstream repository information from your Satellite Server for the selected products. Simplified alternate content sources are ideal for situations where the connection from your Capsule Server to the upstream repository is faster than to your Satellite Server. Selecting the Red Hat products when creating a simplified alternate content source will download the content to the Capsule Servers from the Red Hat CDN.
- RHUI
- RHUI alternate content sources download content from a Red Hat Update Infrastructure (RHUI) server. Satellite web UI provides examples to help you find the network paths and to import authentication credentials. The RHUI alternate content source must be RHUI version 4 or greater and use the default installation configuration. For example, AWS RHUI is unsupported because it uses an installation scenario with unique authentication requirements.
3.1. Creating custom alternate content sources by using Satellite web UI Copiar o linkLink copiado para a área de transferência!
You can create custom alternate content sources (ACS) to define alternate paths to download content during synchronization.
Prerequisites
- If the repository requires SSL authentication, import the SSL certificate and key into Satellite. For more information, see Importing custom SSL certificates by using Satellite web UI in Managing content.
-
You have the base URL and subpaths of your alternate content source. For example, if your base URL is
https://server.example.comand your subpaths arerhel10/andrhel9/, then Satellite will searchhttps://server.example.com/rhel10/andhttps://server.example.com/rhel9/.
Procedure
- In the Satellite web UI, navigate to Content > Alternate Content Sources.
- Click Add source.
- Set the Source type to Custom.
- Select the Content type from the drop-down list.
- In the Name field, enter a name for your custom ACS.
- Optional: In the Description field, provide a description for the ACS.
- Select Capsules to which you want to synchronize content from your alternate content source.
- If you require synchronizing content through the HTTP proxy of your Capsules, select Use HTTP proxies.
- In the Base URL field, enter the base URL of the alternate content source.
- In the Subpaths field, provide a comma-separated list of subpaths.
- If your alternate content source requires authentication, select the Manual authentication or Content credentials.
- If SSL verification is required, enable Verify SSL and select the SSL CA certificate.
- Click Add.
- Navigate to Content > Alternate Content Sources.
- Click the vertical ellipsis next to the newly created alternate content source and click Refresh.
Verification
- In the Satellite web UI, navigate to Monitor > Satellite Tasks > Tasks.
-
Search for
Refresh Alternate Content Source. - Verify that the task finished successfully.
3.2. Creating custom alternate content sources by using Hammer CLI Copiar o linkLink copiado para a área de transferência!
You can create custom alternate content sources (ACS) to define alternate paths to download content during synchronization.
Prerequisites
- If the repository requires SSL authentication, import the SSL certificate and key into Satellite. For more information, see Importing custom SSL certificates by using Hammer CLI in Managing content.
-
You have the base URL and subpaths of your alternate content source. For example, if your base URL is
https://server.example.comand your subpaths arerhel10/andrhel9/, then Satellite will searchhttps://server.example.com/rhel10/andhttps://server.example.com/rhel9/.
Procedure
Create a custom alternate content source:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Refresh your alternate content source:
hammer alternate-content-source refresh --name "My_ACS_Name"
$ hammer alternate-content-source refresh --name "My_ACS_Name"Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
Verify that the task ran successfully:
hammer task list --search "Refresh Alternate Content Source"
$ hammer task list --search "Refresh Alternate Content Source"Copy to Clipboard Copied! Toggle word wrap Toggle overflow
3.3. Creating simplified alternate content sources by using Satellite web UI Copiar o linkLink copiado para a área de transferência!
You can create simplified alternate content sources (ACS) to reuse the upstream source to download content during synchronization on Capsule Servers.
Procedure
- In the Satellite web UI, navigate to Content > Alternate Content Sources.
- Click Add source.
- Set the Source type to Simplified.
- Select the Content type from the drop-down list.
- In the Name field, enter a name for your simplified ACS.
- Optional: In the Description field, provide a description for the ACS.
- Select Capsules to which you want to synchronize content from your alternate content source.
- If you require synchronizing content through the HTTP proxy of your Capsules, select Use HTTP proxies.
- Select the products that should use the alternate content source.
- Click Add.
- Navigate to Content > Alternate Content Sources.
- Click the vertical ellipsis next to the newly created alternate content source and click Refresh.
Verification
- In the Satellite web UI, navigate to Monitor > Satellite Tasks > Tasks.
-
Search for
Refresh Alternate Content Source. - Verify that the task finished successfully.
3.4. Creating simplified alternate content sources by using Hammer CLI Copiar o linkLink copiado para a área de transferência!
You can create simplified alternate content sources (ACS) to reuse the upstream source to download content during synchronization on Capsule Servers.
Procedure
Create a simplified alternate content source:
hammer alternate-content-source create \ --alternate-content-source-type simplified \ --name "My_ACS_Name" \ --product-ids My_Product_ID_1,My_Product_ID_2 \ --smart-proxy-ids My_Capsule_ID_1,My_Capsule_ID_2
$ hammer alternate-content-source create \ --alternate-content-source-type simplified \ --name "My_ACS_Name" \ --product-ids My_Product_ID_1,My_Product_ID_2 \ --smart-proxy-ids My_Capsule_ID_1,My_Capsule_ID_2Copy to Clipboard Copied! Toggle word wrap Toggle overflow Refresh your alternate content source:
hammer alternate-content-source refresh --name "My_ACS_Name"
$ hammer alternate-content-source refresh --name "My_ACS_Name"Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
Verify that the task ran successfully:
hammer task list --search "Refresh Alternate Content Source"
$ hammer task list --search "Refresh Alternate Content Source"Copy to Clipboard Copied! Toggle word wrap Toggle overflow
3.5. Synchronizing Capsule directly from Red Hat CDN by using Satellite web UI Copiar o linkLink copiado para a área de transferência!
You can use simplified alternate content sources to configure your Capsule Servers to sync content directly from Red Hat CDN instead of Satellite Server.
Procedure
- In the Satellite web UI, navigate to Content > Alternate Content Sources.
- Click Add source.
- Set the Source type as Simplified.
- Set the Content type to Yum.
- In the Name field, enter a name for the alternate content source.
- Optional: In the Description field, provide a description for the alternate content source.
- Select Capsules that you want to sync directly from Red Hat CDN.
- If you require synchronizing content through the HTTP proxy of your Capsules, select Use HTTP proxies.
- Select the Red Hat products that should be synced to the Capsule from Red Hat CDN.
- Review details and click Add.
- Navigate to Content > Alternate Content Sources, click the vertical ellipsis next to the newly created alternate content source, and select Refresh.
3.6. Creating RHUI alternate content sources by using Satellite web UI Copiar o linkLink copiado para a área de transferência!
You can use RHUI alternate content sources to configure your Capsule to sync content from a Red Hat Update Infrastructure server.
Prerequisites
- Generate the client entitlement certificates for the required repos on the RHUA node as described in Creating a client entitlement certificate with the Red Hat Update Infrastructure Management Tool in Configuring and Managing Red Hat Update Infrastructure.
- Import the client entitlement certificates into Satellite. For more information, see Importing custom SSL certificates by using Satellite web UI in Managing content.
Obtain a list of the subpaths for the required repositories. Execute the following command on your RHUA server:
rhui-manager repo info --repo_id My_Repo_ID
# rhui-manager repo info --repo_id My_Repo_IDCopy to Clipboard Copied! Toggle word wrap Toggle overflow -
You have the base URL and subpaths of your alternate content source. For example, if your base URL is
https://server.example.comand your subpaths arerhel10/andrhel9/, then Satellite will searchhttps://server.example.com/rhel10/andhttps://server.example.com/rhel9/.
Procedure
- In the Satellite web UI, navigate to Content > Alternate Content Sources.
- Click Add source.
- Set the Source type to RHUI.
- Generate RHUI certificates using the command provided in the Satellite web UI. Ensure that you pass the repo labels of the desired repositories.
- In the Name field, enter a name for your RHUI ACS.
- Optional: In the Description field, provide a description for the ACS.
- Select Capsules to which you want to synchronize content from your alternate content source.
- If you require synchronizing content through the HTTP proxy of your Capsules, select Use HTTP proxies.
- In the Base URL field, enter the base URL of the Red Hat Update Infrastructure CDS node.
- In the Subpaths field, provide a comma-separated list of subpaths.
- If your alternate content source requires authentication, provide the SSL client certificate and SSL client key.
- If SSL verification is required, enable Verify SSL and select the SSL CA certificate.
- Click Add.
- Navigate to Content > Alternate Content Sources.
- Click the vertical ellipsis next to the newly created alternate content source and click Refresh.
3.7. Creating RHUI alternate content sources by using Hammer CLI Copiar o linkLink copiado para a área de transferência!
You can use RHUI alternate content sources to configure your Capsule to sync content from a Red Hat Update Infrastructure server.
Prerequisites
- Generate the client entitlement certificates for the required repos on the RHUA node as described in Creating a client entitlement certificate with the Red Hat Update Infrastructure Management Tool in Configuring and Managing Red Hat Update Infrastructure.
- Import the client entitlement certificates into Satellite. For more information, see Importing custom SSL certificates by using Hammer CLI in Managing content.
Obtain a list of the subpaths for the required repositories. Execute the following command on your RHUA server:
rhui-manager repo info --repo_id My_Repo_ID
# rhui-manager repo info --repo_id My_Repo_IDCopy to Clipboard Copied! Toggle word wrap Toggle overflow -
Note that the alternate content source paths consist of a base URL appended with the subpaths that you provide. For example, if your base URL is
https://server.example.comand your subpaths arerhel7/andrhel8/, then bothhttps://server.example.com/rhel7/andhttps://server.example.com/rhel8/will be searched.
Procedure
Create a RHUI alternate content source:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Refresh the alternate content source:
hammer alternate-content-source refresh --name "My_ACS_Name"
$ hammer alternate-content-source refresh --name "My_ACS_Name"Copy to Clipboard Copied! Toggle word wrap Toggle overflow
3.8. Permissions required to manage alternate content sources Copiar o linkLink copiado para a área de transferência!
You need permissions to manage alternate content sources (ACS) on Red Hat Satellite.
- Permissions to view ACS
-
view_content_credentials -
view_organizations -
view_products -
view_smart_proxies
-
- Permissions to manage ACS
-
create_alternate_content_sources -
destroy_alternate_content_sources -
edit_alternate_content_sources -
view_alternate_content_sources
-