Bookmark this page

Create Products with Repository Discovery

Objectives

  • Create custom products and repositories with the repository discovery feature to search URLs for multiple repositories.

Describe Repository Discovery

Third-party software vendors often use multiple software package repositories for their different software collections. Rather than manually creating each repository on Satellite Server by specifying their individual URLs, you can use repository discovery to expedite the process of adding multiple DNF repositories from the same source.

When you use the repository discovery feature, you supply a URL to Satellite Server. Satellite Server scans the contents of this URL to discover all the accessible repositories under the directory structure of that URL. You use the results to create all the intended repositories together.

To create a product with repository discovery:

  • In the Satellite web UI, choose the required organization and location from the main menu. Navigate to ContentProducts.

  • Click Repo Discovery to open the Discover Repositories page. Use the following table to determine suitable values:

    OptionDescription
    Repository Type Specifies the type of the repository. For software package repositories, select DNF Repositories.
    URL to Discover Specifies the URL to search for repositories. This URL points to the Red Hat CDN for a connected Satellite Server. For a disconnected Satellite Server, this URL points to the local CDN.
    Username Sets the username to enable authenticated access to the repository if you intend to protect the repository with a password. Leave the field blank to enable anonymous access to the repository.
    Password Sets the password of the user for authentication to the repository. Leave the field blank to enable anonymous access to the repository.
  • Click Discover to start the repository discovery based on the specified settings. The discovered repositories are displayed in the Discovered Repository section of the page. To create a product with the discovered repositories, select the checkboxes for the intended repositories, and click Create Selected.

  • On the Create Repositories page, in the Product Options section, select New Product in the Product field to add the selected repositories to a new product in Satellite Server.

    The Name field sets the name of the new product. The Label field is automatically populated from the Name field.

  • Select Serve via HTTP to publish the content of the repository via HTTP. Select Verify SSL to validate the SSL certificates of the external content source against the trusted Certificate Authorities.

  • Click Run Repository Creation to create the custom product with the selected repositories.

Extend Existing Product Repositories by Using Repository Discovery

To add or modify selections for an existing product repository, navigate to ContentProducts, and select the checkbox next to the product to modify, and then click Repo Discovery. Select the Repository Type from the drop-down menu and enter a URL for the CDN to search in the URL to Discover field. Click the Discover button. Select the repositories from the Discovered Repository list, and then click Create Selected.

From the Create Repositories page, under Product Options, select Existing Product from the drop-down menu of the Product field to add the selected repositories to an existing product in the Satellite Server. Select the intended product from the drop-down menu of the Name field. Set the values of the other fields as appropriate, and click Run Repository Creation to add the newly discovered repository to the existing product. All the other fields retain the same values as previously described.

Secure Product Repositories by Configuring a GPG Key

To add a GPG key to a product, navigate to ContentProducts, and click the product name to add the GPG key to. On the Details tab, in the Basic Information section, click the pencil icon for GPG Key. Select an item from the GPG Key list, and then click Save.

Creating and managing GPG keys will be discussed in a later section.

References

For more information, refer to the Importing Content chapter in the Red Hat Satellite 6.11 Managing Content Guide at https://access.redhat.com/documentation/en-us/red_hat_satellite/6.11/html-single/managing_content/index#Importing_Content_content-management

Revision: rh403-6.11-3ad886e