Bookmark this page

Guided Exercise: Create Products with Repository Discovery

Create a custom product with repositories that are located by using repository discovery.

Outcomes

  • Create a product and repository by using the repository discovery function.

  • Use an existing local CDN as the repository source for a custom product.

As the student user on the workstation machine, use the lab command to prepare your system for this exercise.

This command prepares your environment and ensures that all required resources are available.

[student@workstation ~]$ lab start custom-discovery

Instructions

The Operations development team has DVD-structured software that is shared as DNF repositories in the local CDN at the http://cdn.lab.example.com/ URL. The team requests that you make available the software in Satellite Server as a custom product. To simplify this practice, you do not create or configure GPG keys for the product or the repositories. GPG keys and validation are covered in a later section.

Note

This exercise uses existing repository content, which demonstrates how source software can be shared again with different attributes. However, the primary exercise objective is to practice repository discovery.

  1. Log in to the Satellite Server web UI, https://satellite.lab.example.com, as the admin account with redhat as the password.

  2. In the upper-left corner of the web page, set the organization to Operations. Set the location to Any Location.

  3. Use the repository discovery feature to locate and create repositories for the RHEL 9.x AppStream and BaseOS DVDs in the local CDN.

    1. Click ContentProducts, and then click Repo Discovery.

    2. On the Discover Repositories page, select Yum Repositories in the Repository Type field. Enter http://cdn.lab.example.com/ in the URL to Discover field. Click Discover.

    3. In the resulting Discovered Repository list, select the checkboxes for the following content, and then click Create Selected.

      • /content/dist/rhel9/9/x86_64/appstream/os/

      • /content/dist/rhel9/9/x86_64/baseos/os/

    4. On the Create Repositories page, locate the Product Options section. Enter the following information, and then click Run Repository Creation.

      OptionValue
      ProductNew Product
      NameDVDs
      LabelDVDs
      UnprotectedSelected
      Verify SSLSelected
  4. Synchronize the repositories in the DVDs product.

    1. Click ContentProducts, and then click the DVDs product.

    2. On the Repositories tab, select the checkboxes for the following repositories, and then click Sync Now. Wait for the synchronization to complete.

      • content dist rhel9 9 x86_64 appstream os

      • content dist rhel9 9 x86_64 baseos os

Finish

On the workstation machine, change to the student user home directory and use the lab command to complete this exercise. This step is important to ensure that resources from previous exercises do not impact upcoming exercises.

[student@workstation ~]$ lab finish custom-discovery

Revision: rh403-6.11-3ad886e