Bookmark this page

Guided Exercise: Publish Content Views to a Satellite Capsule Server

Create and synchronize software content for an external Capsule Server to deploy.

Outcomes

  • Create and publish a content view.

  • Promote the content view to a lifecycle environment.

  • Synchronize the lifecycle environment to the external Capsule Server.

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 capsule-views

Instructions

  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 Boston.

  3. Verify that the RHEL 9 HA repository is enabled and synchronized.

    1. Click ContentRed Hat Repositories. Verify that the Red Hat Enterprise Linux 9 for x86_64 - High Availability (RPMs) repository is in the Enabled Repositories list. Otherwise, select and enable the repository.

    2. Click ContentProducts. Click Red Hat Enterprise Linux High Availability for x86_64. On the Repositories tab, verify that the repository state Success in the Sync Status column. Otherwise, select and synchronize the repository.

  4. Create the Boston HA Project content view in the Operations organization. Publish and promote the content view to the Development lifecycle environment, and then synchronize the Development lifecycle environment to the Capsule Server.

    1. Click ContentContent Views, and then click Create content view. Enter Boston HA Project in the Name field. The Label field is autogenerated from the Name field. Enter HA packages for Boston project in the Description field, and then click Create content view.

    2. On the Repositories tab, select and then verify that you selected the checkboxes for the following RHEL 9 repositories, and then click Add Repositories.

      • Red Hat Enterprise Linux 9 for x86_64 - AppStream RPMs 9

      • Red Hat Enterprise Linux 9 for x86_64 - BaseOS RPMs 9

      • Red Hat Enterprise Linux 9 for x86_64 - High Availability RPMs 9

    3. Click Publish new version. Enter Initial software for Boston project in the Description field. Click the Promote switch, and then select the Development checkbox. Click Next. Review the details, and then click Finish. Wait for the process to complete.

  5. Synchronize the Development lifecycle environment from the Satellite Server to the Capsule Server. The process synchronizes all of the content views and repositories that are currently available in the Development lifecycle environment.

    1. Click InfrastructureCapsules. On the capsule.lab.example.com row, click Edit. Click the Lifecycle Environments tab. Click Development to move the entry to the Selected items list, and then click Submit.

    2. On the Overview tab in the Content Sync section, select SynchronizeOptimized Sync. Wait for the process to complete.

  6. Use the hammer command to view the Capsule Server configuration.

    1. Log in to the satellite system as the student user and switch to the root user.

      [student@workstation ~]$ ssh student@satellite
      [student@satellite ~]$ sudo -i
      [sudo] password for student: student
      [root@satellite ~]#
    2. List the available Capsule Servers.

      [root@satellite ~]# hammer --output base capsule list
      Id:       2
      Name:     capsule.lab.example.com
      URL:      https://capsule.lab.example.com:9090
      Features: Dynflow, Container_Gateway, SSH, Pulpcore, Templates, Logs,
                Registration, Ansible
      
      Id:       1
      Name:     satellite.lab.example.com
      URL:      https://satellite.lab.example.com:9090
      Features: Dynflow, Discovery, SSH, Ansible, Openscap, Pulpcore, Logs
    3. List the lifecycle environments and content views that the Capsule Server provides.

      [root@satellite ~]# hammer capsule content info \
      --name capsule.lab.example.com
      Lifecycle Environments:
       1) Name:          Development
          Organization:  Operations
          Content Views:
           1) Name:           BaseHAComposite
              Composite:      yes
              Last Published: 2023/04/04 15:23:52
              Content:
           2) Name:           OpsBaseHA
              Composite:      no
              Last Published: 2023/04/04 15:29:55
              Content:
           3) Name:           OperationsServerBase
              Composite:      no
              Last Published: 2023/04/05 08:32:46
              Content:
           4) Name:           Boston HA Project
              Composite:      no
              Last Published: 2023/04/05 10:32:03
              Content:
    4. Return to the workstation system as the student user.

      [root@satellite ~]# exit
      logout
      [student@satellite ~]$ exit
      logout
      Connection to satellite closed.
      [student@workstation ~]$

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 capsule-views

Revision: rh403-6.11-3ad886e