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
Log in to the Satellite Server web UI, https://satellite.lab.example.com, as the admin account with redhat as the password.
In the upper-left corner of the web page, set the organization to Operations.
Set the location to Boston.
Verify that the RHEL 9 HA repository is enabled and synchronized.
Click → .
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.
Click → .
Click .
On the tab, verify that the repository state Success in the Sync Status column.
Otherwise, select and synchronize the repository.
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.
Click → , and then click .
Enter Boston HA Project in the field.
The field is autogenerated from the field.
Enter HA packages for Boston project in the field, and then click .
On the tab, select and then verify that you selected the checkboxes for the following RHEL 9 repositories, and then click .
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
Click .
Enter Initial software for Boston project in the field.
Click the switch, and then select the Development checkbox.
Click .
Review the details, and then click .
Wait for the process to complete.
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.
Click → . On the row, click . Click the tab. Click to move the entry to the list, and then click .
On the tab in the Content Sync section, select → .
Wait for the process to complete.
Use the hammer command to view the Capsule Server configuration.
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 ~]#
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, LogsList 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:Return to the workstation system as the student user.
[root@satellite ~]#exitlogout [student@satellite ~]$exitlogout Connection to satellite closed. [student@workstation ~]$