Create a host collection and an activation key, and use these resources to register hosts.
Outcomes
Create a host collection.
Create an activation key and set host attributes in it.
Clean repository and subscription data from a system.
Register a content host with an activation key.
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 clients-review
Instructions
Create the FinanceServers host collection, which can contain unlimited hosts, with Finance Servers as the description.
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 → , and then click .
Enter FinanceServers in the field and Finance Servers in the field.
Select , and then click .
Create the FinanceServers activation key to register unlimited hosts to the Build lifecycle environment and the FinanceServerBase content view.
Configure the FinanceServers activation key for release version 9, and to assign FinanceServers host collection membership during host registration.
Prepare the serverb system for registration to Satellite Server with the FinanceServers activation key.
Clean any previous subscription data, install the CA certificate, and then register the host.
From workstation, 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 ~]#
Although the serverb system was not previously registered, cleaning the repository and subscription data verifies that the system is ready for registration.
[root@serverb ~]#dnf clean allUpdating Subscription Management repositories. Unable to read consumer identity This system is not registered with an entitlement server. You can use subscription-manager to register. 0 files removed [root@serverb ~]#rm -rf /var/cache/dnf/[root@serverb ~]#subscription-manager remove --all0 subscriptions removed at the server. [root@serverb ~]#subscription-manager unregisterThis system is currently not registered. [root@serverb ~]#subscription-manager cleanAll local data removed
Install the Katello CA certificate from Satellite Server.
[root@serverb ~]#dnf localinstall \http://satellite.lab.example.com/pub/katello-ca-consumer-latest.noarch.rpm...output omitted...
Register the serverb system to the Finance organization by using the FinanceServers activation key.
[root@serverb ~]# subscription-manager register --org 'Finance' \
--activationkey 'FinanceServers'
The system has been registered with ID: 8fa907ce-7e50-4ee0-8070-b19847e3a5a2
The registered system name is: serverb.lab.example.comReturn to the workstation system as the student user.
[root@serverb ~]#exitlogout [student@serverb ~]$exitlogout Connection to serverb closed.