Enable software repositories, create a sync plan, create lifecycle environments, and associate a new content view with a lifecycle environment.
Outcomes
Enable software repositories.
Create a sync plan.
Create lifecycle environments.
Create content views.
Associate a content view with a lifecycle environment.
As the student user on the workstation machine, use the lab command to prepare your system for this exercise.
This command verifies that the Satellite Server is operational, and that the required resources exist.
[student@workstation ~]$ lab start lifecycles-review
Instructions
To reduce exercise wait time, the initial Satellite classroom environment contains the preconfigured Operations and Finance organizations, each with an imported subscription manifest and presynchronized RHEL 9 BaseOS and AppStream repositories.
This exercise adds a client DNF repository to the Finance organization.
Verify that the following software repositories are enabled for the Finance organization:
Red Hat Enterprise Linux 9 for x86_64 - AppStream RPMs 9
Red Hat Enterprise Linux 9 for x86_64 - BaseOS RPMs 9
Red Hat Satellite Client 6 for RHEL 9 x86_64 RPMs
On workstation, log in to the Satellite Server web UI, https://satellite.lab.example.com, as admin with redhat as the password.
In the upper-left corner of the web page, set the organization to Finance.
Set the location to Any Location.
Click → to list the organization's repositories. The and repositories are already listed in the list.
In the list, locate the entry. Click the greater-than symbol (>) to the left of the name to expand the version information. Click the plus sign next to to enable this repository version. The entry is displayed in the list.
Use the hammer command to synchronize the Finance organization's enabled repositories.
On workstation, 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 enabled repositories within the Finance organization.
Note the numeric identifier for each repository.
All of the repositories belong to the same product.
[root@satellite ~]# hammer --output base repository list --organization Finance
Id: 3
Name: Red Hat Enterprise Linux 9 for x86_64 - AppStream RPMs 9
Product: Red Hat Enterprise Linux for x86_64
Content Type: yum
Url: http://cdn.lab.example.com/content/dist/rhel9/9/x86_64/appstream/os
Id: 4
Name: Red Hat Enterprise Linux 9 for x86_64 - BaseOS RPMs 9
Product: Red Hat Enterprise Linux for x86_64
Content Type: yum
Url: http://cdn.lab.example.com/content/dist/rhel9/9/x86_64/baseos/os
Id: 5
Name: Red Hat Satellite Client 6 for RHEL 9 x86_64 RPMs
Product: Red Hat Enterprise Linux for x86_64
Content Type: yum
Url: http://cdn.lab.example.com/content/dist/layered/rhel9/x86_64/sat-client/6/osSynchronize the enabled repositories in the Finance organization.
You can synchronize each repository separately by using the --id option on a hammer repository synchronize command.
Instead, use the hammer product synchronize command to synchronize all of a product's repositories with a single command.
Because most of the repositories are already synchronized, the sync is expected to finish quickly.
[root@satellite ~]# hammer product synchronize \
--organization Finance \
--name "Red Hat Enterprise Linux for x86_64"
[......................................................................] [100%]
5 task(s), 5 success, 0 failIn the web UI, click → to open the page.
Use the field under to filter for task actions that begin with Synchronize repository.
Verify that the latest repository synchronizations display success in the column.
Create a sync plan named Red Hat Products - Finance in the Finance organization.
Set the sync plan to update the product's repository content daily, starting today at 6:00 PM.
In the upper-left corner of the web page, set the organization to Finance.
Set the location to Any Location.
Click → to display the page, and then click to display the page.
Enter Red Hat Products - Finance in the field.
In the field, click .
In the Start Date field, use the current date default as the start date.
In the Start Time fields, enter 18 for the hour and 00 for the minute, and then click .
Assign the Red Hat Products - Finance sync plan to the enabled repositories in the Finance organization:
Red Hat Enterprise Linux 9 for x86_64 - AppStream RPMs 9
Red Hat Enterprise Linux 9 for x86_64 - BaseOS RPMs 9
Red Hat Satellite Client 6 for RHEL 9 x86_64 RPMs
In the upper-left corner of the web page, verify that the Finance organization and the Any Location context are set.
On the Sync Plan for Red Hat Products page, click the tab, and then click the Add tab.
Select the checkbox next to the product, and click .
All of the product's repositories are included in this sync plan.
Click the tab to verify that the product is in the sync plan.
Click the Red Hat Enterprise Linux for x86_64 link to display the Red Hat Enterprise Linux for x86_64 page, and then click the tab.
Verify that the Red Hat Enterprise Linux 9 for x86_64 - AppStream RPMs 9, Red Hat Enterprise Linux 9 for x86_64 - BaseOS RPMs 9, and Red Hat Satellite Client 6 for RHEL 9 x86_64 RPMs repositories are listed.
Do not select any repositories on this page.
Run the sync plan manually to immediately synchronize the configured content.
Click → to return to the page. Click the link to view the sync plan details. Click in the upper-right corner, and then click .
Click → .
Use the field under to filter for task actions that begin with Synchronize repository.
Verify that the latest repository synchronizations display success in the column.
Create the Build, Test, and Deploy lifecycle environments for the Finance organization.
Create a FinanceServerBase content view, and add the Red Hat Enterprise Linux 9 for x86_64 - BaseOS RPMs 9 repository.
Publish the content view, and promote it to the Build lifecycle environment in the Finance organization.
Click → and then click .
On the page, enter FinanceServerBase in the field, and click .
Click the tab, select the checkbox next to , and then click .
Verify that the column displays Added for the repository.
Click to display the page.
Set the Promote switch to on, and select the checkbox.
Click to display the page.
Click to publish the content view version. Wait for the version promotion to complete. Monitor the progress in the column.