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 orcharhino 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 orcharhino Server and orcharhino Proxy 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 orcharhino management UI or Hammer CLI. Alternate content sources associated with your orcharhino Server, or orcharhino Proxy Servers attached to multiple organizations, affect all organizations.
There are two 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 orcharhino Server for the selected products. Simplified alternate content sources are ideal for situations where the connection from your orcharhino Proxy Server to the upstream repository is faster than to your orcharhino Server.
Creating custom alternate content sources by using orcharhino management UI
You can create custom alternate content sources (ACS) to define alternate paths to download content during synchronization.
-
If the repository requires SSL authentication, import the SSL certificate and key into orcharhino. For more information, see Importing custom SSL certificates 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 arecentos-10/andcentos-9/, then orcharhino will searchhttps://server.example.com/centos-10/andhttps://server.example.com/centos-9/.
-
In the orcharhino management 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 orcharhino Proxies to which you want to synchronize content from your alternate content source.
-
If you require synchronizing content through the HTTP proxy of your orcharhino Proxies, 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.
-
In the orcharhino management UI, navigate to Monitor > orcharhino Tasks > Tasks.
-
Search for
Refresh Alternate Content Source. -
Verify that the task finished successfully.
Creating custom alternate content sources by using Hammer CLI
You can create custom alternate content sources (ACS) to define alternate paths to download content during synchronization.
-
If the repository requires SSL authentication, import the SSL certificate and key into orcharhino. For more information, see Importing custom SSL certificates 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 arecentos-10/andcentos-9/, then orcharhino will searchhttps://server.example.com/centos-10/andhttps://server.example.com/centos-9/.
-
Create a custom alternate content source:
$ hammer alternate-content-source create \ --alternate-content-source-type custom \ --base-url "https://local-repo.example.com:port" \ --name "My_ACS_Name" \ --smart-proxy-ids My_orcharhino_Proxy_ID_1,My_orcharhino_Proxy_ID_2 \ --subpaths "My_Subpath_1/,_My_Subpath_2/," \ --verify-ssl _true -
Refresh your alternate content source:
$ hammer alternate-content-source refresh --name "My_ACS_Name"
-
Verify that the task ran successfully:
$ hammer task list --search "Refresh Alternate Content Source"
Creating simplified alternate content sources by using orcharhino management UI
You can create simplified alternate content sources (ACS) to reuse the upstream source to download content during synchronization on orcharhino Proxy Servers.
-
In the orcharhino management 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 orcharhino Proxies to which you want to synchronize content from your alternate content source.
-
If you require synchronizing content through the HTTP proxy of your orcharhino Proxies, 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.
-
In the orcharhino management UI, navigate to Monitor > orcharhino Tasks > Tasks.
-
Search for
Refresh Alternate Content Source. -
Verify that the task finished successfully.
Creating simplified alternate content sources by using Hammer CLI
You can create simplified alternate content sources (ACS) to reuse the upstream source to download content during synchronization on orcharhino Proxy Servers.
-
Create a simplified alternate content source:
$ hammer alternate-content-source create \ --alternate-content-source-type simplified \ --content-type yum \ --name "My_ACS_Name" \ --product-ids My_Product_ID_1,My_Product_ID_2 \ --smart-proxy-ids My_orcharhino_Proxy_ID_1,My_orcharhino_Proxy_ID_2Set the content type to
fileif you want to create a simplified ACS for a product with file-type repositories. -
Refresh your alternate content source:
$ hammer alternate-content-source refresh --name "My_ACS_Name"
-
Verify that the task ran successfully:
$ hammer task list --search "Refresh Alternate Content Source"
Permissions required to manage alternate content sources
You need permissions to manage alternate content sources (ACS) on orcharhino.
- 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
-
|
The text and illustrations on this page are licensed by ATIX AG under a Creative Commons Attribution Share Alike 4.0 International ("CC BY-SA 4.0") license. This page also contains text from the official Foreman documentation which uses the same license ("CC BY-SA 4.0"). |