Bookmark this page

Guided Exercise: Create Custom Products and Repositories

Create a custom product with a custom repository.

Outcomes

  • Create a custom product with a custom repository that contains an uploaded package.

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-create

Instructions

  1. Log in to the Satellite Server web UI at https://satellite.lab.example.com as admin 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. Create a custom product called Custom Software, and add an Admin Tools custom repository to the product. To simplify this practice, you do not create or configure GPG keys for the product or the repository. GPG keys and validation are covered in a later section.

    1. Click ContentProducts, and then click Create Product.

    2. Enter Custom Software in the Name field. The Label field is autogenerated from the Name field. Enter Custom Software in the Description field, and then click Save.

    3. In the Repositories tab, click New Repository.

    4. Enter Admin Tools in the Name field. The Label field is autogenerated from the Name field.

    5. Select yum from the Type menu. Keep the Upstream Username and Upstream Password fields empty, because the Admin Tools repository is not password-protected. Click Save.

  4. Upload the systemstats package to the Admin Tools repository.

    1. In the Repositories tab, click the Admin Tools link to view the repository details.

    2. In the Upload Package section, click Browse. Select the systemstats-1.0-1.el9.noarch.rpm package from the /home/student/ directory, and click Open. Click Upload to upload the selected package. The package count for the Admin Tools repository is now 1.

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-create

Revision: rh403-6.11-3ad886e