Provide a signed software package to content hosts by creating a custom product, a repository with a GPG key, and an updated content view.
Outcomes
Create a custom product and a repository for providing validated software packages.
Install a validated package on a content host.
As the student user on the workstation machine, use the lab command to prepare your system for this exercise.
[student@workstation ~]$ lab start custom-review
Instructions
The Finance development team needs to deploy custom software packages that are signed with the existing Example Software company GPG key that was created by developer Trey Feagle.
Create a Custom Software product and an Admin Tools repository in the Finance organization.
The development team provided the signed ~/home/student/bkp-1.0-1.el9.x86_64.rpm package and the /home/student/EXAMPLE-RPM-GPG-KEY public key on the satellite system.
Install the bkp package on the serverb system to test the package validation.
Log in to the web UI, https://satellite.lab.example.com, as the admin user 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.
Use the provided public key to create a content credential.
Create a custom product called Custom Software, and add an Admin Tools custom repository to the product.
Click → , and then click .
Enter Custom Software in the field.
The field is autogenerated from the field.
Enter Example Software in the field, and then click .
In the tab, click .
Enter Admin Tools in the field.
The field is autogenerated from the field.
Select from the menu. Select the checkbox for . Click .
Upload the signed bkp package to the Admin Tools repository.
Update the FinanceServers activation key to add the Admin Tools repository.
Update the FinanceServerBase content view to verify or add the following repositories.
Publish and promote the new content view version to the Build lifecycle environment in the Finance organization.
Red Hat Enterprise Linux 9 for x86_64 - BaseOS RPMs 9
Red Hat Enterprise Linux 9 for x86_64 - AppStream RPMs 9
Red Hat Satellite Client 6 for RHEL 9 x86_64 RPMs
Admin Tools
Install the bkp package on the serverb content host and import the public key for the signed package.
Log in to the serverb system as the student user and switch to the root user.
[student@workstation ~]$ssh student@serverb[student@serverb ~]$sudo -i[sudo] password for student:student[root@serverb ~]#
Install the bkp-1.0-1.el9.x86_64.rpm package.
[root@serverb ~]#dnf install bkp...output omitted... Is this ok [y/N]:y...output omitted... Importing GPG key 0x97751C8A: Userid :"student <student@workstation.lab.example.com>"Fingerprint: 1CAC FBA2 9532 C029 1D7B 12A0 CC9F CF16 9775 1C8A From : https://satellite.lab.example.com/katello/api/v2/repositories/25/gpg_key_content Is this ok [y/N]:yKey imported successfully ...output omitted... Complete!
Return to the workstation system as the student user.
[root@serverb ~]#exitlogout [student@serverb ~]$exitlogout [student@workstation ~]$