Register a system with Satellite Server and configure it for management with Satellite Server by using an activation key.
Outcomes
Create an activation key.
Unregister and clean a previously registered host.
Use an activation key to register a host.
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-automate
Instructions
Log in to the Satellite Server 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 Operations.
Set the location to Any Location.
Create an activation key for registering clients to the Operations organization.
Click → , and then click .
Enter OperationsServers in the field.
Select the checkbox.
Select the environment.
Select the content view, and then click .
Set the release version for the content host.
On the page, click the tab.
In the section, select 9 from the list, and then click .
Assign the OpsServers host collection to the activation key.
On the page, click the tab. Click the tab.
Select the OpsServers checkbox, and then click .
Prepare the product content by enabling the RHEL 9 repositories and disabling the RHEL 8 repositories.
Hosts that are registered to the Operations organization use Simple Content Access subscription management.
Activation keys for SCA-enabled organizations do not need to specify subscriptions to attach to the host during registration.
On the page, click the tab.
View the Status column for each of the listed repositories.
Verify that the following RHEL 9 repositories are already enabled.
Red Hat Enterprise Linux 9 x86_64 - AppStream (RPMs)
Red Hat Enterprise Linux 9 x86_64 - BaseOS (RPMs)
Enable the following additional RHEL 9 repository.
Select the checkbox for the repository, and then select Override to Enabled from the list.
Red Hat Satellite Client 6 for RHEL 9 x86_64 (RPMs)
Disable the following RHEL 8 repositories.
Select the checkboxes for both repositories, and then select Override to Disabled from the list.
Red Hat Enterprise Linux 8 x86_64 - AppStream (RPMs)
Red Hat Enterprise Linux 8 x86_64 - BaseOS (RPMs)
Prepare the serverc system for registration to Satellite Server with the OperationsServers activation key.
The serverc system is currently registered to the Marketing organization.
You are reassigning the serverc system to the Operations organization.
On workstation, log in to the serverc system as the student user and switch to the root user.
[student@workstation ~]$ssh student@serverc[student@serverc ~]$sudo -i[sudo] password for student:student[root@serverc ~]#
View the current subscription UUID for the serverc system as a content host in the Marketing organization.
The entitlement mode indicates legacy per-client subscription management.
[root@serverc ~]# cat /var/lib/rhsm/cache/content_access_mode.json | python -m \
json.tool
{
"0d8eef75-9ba3-420c-b344-8ae0a78a9770": "entitlement"
}Remove the Satellite Server registration and entitlements from the serverc system.
[root@serverc ~]#dnf clean allUpdating Subscription Management repositories. 16 files removed [root@serverc ~]#rm -rf /var/cache/dnf/[root@serverc ~]#subscription-manager remove --all2 local certificates have been deleted. 2 subscriptions removed at the server. [root@serverc ~]#subscription-manager unregisterUnregistering from: satellite.lab.example.com:443/rhsm System has been unregistered. [root@serverc ~]#subscription-manager cleanAll local data removed
In the web UI, assign the existing serverc host resource to the Operations organization.
By migrating the host, the serverc host resource can keep its activity history.
In the upper-left corner of the web page, set the organization to Marketing.
Set the location to Any Location.
Click → .
Select the checkbox for the serverc.lab.example.com host, and then select Assign Organization from the list.
Select Operations in the list.
Select , and then click .
The page refreshes and notifies you that the current organization does not have any visible hosts.
On the serverc system, register the host to Satellite Server by using the OperationsServer activation key.
Verify that the latest consumer RPM, katello-ca-consumer-latest.noarch.rpm, is installed.
[root@serverc ~]# dnf localinstall \
http://satellite.lab.example.com/pub/katello-ca-consumer-latest.noarch.rpm
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered with an entitlement server. You can use subscription-manager to register.
katello-ca-consumer-latest.noarch.rpm 2.2 MB/s | 9.9 kB 00:00
Package katello-ca-consumer-satellite.lab.example.com-1.0-1.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!Register the system to the Operations organization by using the OperationsServer activation key.
[root@serverc ~]# subscription-manager register \
--org Operations \
--activationkey OperationsServers
The system has been registered with ID: 3244ed9d-ce23-4a2a-a39d-112324d84b3c
The registered system name is: serverc.lab.example.comView the changed subscription UUID for the serverc system as a content host in the Operations organization.
The org_environment mode indicates that Simple Content Access is enabled.
[root@serverc ~]# cat /var/lib/rhsm/cache/content_access_mode.json | python -m \
json.tool
{
"3244ed9d-ce23-4a2a-a39d-112324d84b3c": "org_environment"
}Install the Katello agent on the content host.
[root@serverc ~]#dnf install katello-agentUpdating Subscription Management repositories. ...output omitted... Is this ok [y/N]:y...output omitted... Complete!
Return to the workstation system as the student user.
[root@serverc ~]#exitlogout [student@serverc ~]$exitlogout Connection to serverc closed. [student@workstation ~]$
In the web UI, verify that the serverc host is in the Operations organization with the new subscription UUID.
In the upper-left corner of the web page, set the organization to Operations.
Set the location to Any Location.
Click → . Click the link.
On the tab, verify that the matches the UUID that you queried from the serverc system.
In the section, verify that the is 9.
In the section, verify that the is Simple Content Access.
On the tab, verify that the system is a member of the OpsServers host collection.
On the tab, verify that the Red Hat Satellite Client 6 for RHEL 9 x86_64 (RPMs) repository is enabled.