Install a Capsule Server by preparing the repositories, Satellite certificate, and an activation key, and by choosing the configuration in the installation program.
Outcomes
Prepare the required resources to install a Capsule Server.
Prepare a system for Capsule Server installation.
Install and configure a Capsule Server.
As the student user on the workstation machine, use the lab command to prepare your system for this exercise.
This command ensures that the satellite host is reachable on the network and prepares it for this exercise.
[student@workstation ~]$ lab start capsule-install
Instructions
A Capsule Server must first be registered to an organization that can provide the required RHEL version repositories.
Red Hat Satellite 6.11 can deploy RHEL 9 content hosts, but Satellite infrastructure servers are supported only on RHEL 8 host systems.
Prepare the RHEL 8 capsule system for installation as a Capsule Server.
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 Operations.
Set the location to Any Location.
Enable and synchronize the required RHEL 8 repositories for installing a Capsule Server.
Create the Capsule activation key for registering a RHEL 8 system to the Operations organization.
The Capsule Server's host can be registered to any organization that can provide the supported RHEL repositories. The host's registration is unrelated to the organizations to which the installed Capsule Server can provide services.
Click → .
Verify that the Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) and the Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) repositories are already in the Enabled Repositories list.
In the list, enable each of the following repositories. For each repository set, click the greater-than symbol (>) to expand the version information, and then click the plus sign (+) to the right of to enable that repository version. Verify that each repository is listed in the list, and that the repository is for RHEL 8.
Red Hat Satellite Client 6 for RHEL 8 x86_64 (RPMs)
Red Hat Satellite Capsule 6.11 for RHEL 8 x86_64 (RPMs)
Red Hat Satellite Maintenance 6.11 for RHEL 8 x86_64 (RPMs)
Synchronize the newly enabled repositories.
Click → .
Select all of the products by clicking the checkbox at the top of the checkbox column.
Select Sync Selected from the list.
Wait for the process to complete.
Create an activation key for registering a RHEL 8 system to the Operations organization.
Click → , and then click .
Enter Capsule in the field.
Select the checkbox.
Select the environment.
Select the content view, and then click .
On the tab in the section, select 8 from the list, and then click .
Configure the required repositories in the activation key. On the page, click the tab. Verify that the following RHEL 8 repositories are already enabled.
Red Hat Enterprise Linux 8 x86_64 - AppStream (RPMs)
Red Hat Enterprise Linux 8 x86_64 - BaseOS (RPMs)
Enable the following additional RHEL 8 repositories.
Select the checkboxes for all three repositories, and then select Override to Enabled from the list.
Red Hat Satellite Client 6 for RHEL 8 x86_64 (RPMs)
Red Hat Satellite Capsule 6.11 for RHEL 8 x86_64 (RPMs)
Red Hat Satellite Maintenance 6.11 for RHEL 8 x86_64 (RPMs)
Disable the rest of the repositories in the list.
Select the checkboxes for the repositories, and then select Override to Disabled from the list.
Register the capsule system to the Operations organization by using the Capsule activation key.
Log in to the capsule system as the student user and switch to the root user.
[student@workstation ~]$ssh student@capsule[student@capsule ~]$sudo -i[sudo] password for student:student[root@capsule ~]#
Install the katello-ca-consumer-latest package from Satellite Server (satellite.lab.example.com).
[root@capsule ~]#dnf localinstall \ http://satellite.lab.example.com/pub/katello-ca-consumer-latest.noarch.rpm...output omitted... Is this ok [y/d/N]:y...output omitted... Complete!
Register the capsule host to Satellite Server by using the Capsule activation key.
[root@capsule ~]# subscription-manager register \
--activationkey Capsule \
--org Operations
The system has been registered with ID: 542479c1-4ebc-44ff-b58f-9ea6f0a41f8e
The registered system name is: capsule.lab.example.comConfigure firewall rules on the capsule and satellite systems for the required service ports.
Add the required ports to the capsule system's firewall rules, and make the settings permanent.
[root@capsule ~]#firewall-cmd \ --add-port="53/udp" --add-port="53/tcp" \ --add-port="67/udp" --add-port="69/udp" \ --add-port="80/tcp" --add-port="443/tcp" \ --add-port="5647/tcp" --add-port="8000/tcp" \ --add-port="8140/tcp" --add-port="8443/tcp" \ --add-port="9090/tcp"success [root@capsule ~]#firewall-cmd --runtime-to-permanentsuccess
Verify that the ports on the capsule system are configured.
[root@capsule ~]# firewall-cmd --list-ports
53/udp 53/tcp 67/udp 69/udp 80/tcp 443/tcp 5647/tcp 8000/tcp 8140/tcp 8443/tcp 9090/tcpIn a separate terminal, 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 ~]#
Add the required ports to the satellite system's firewall rules, and make the settings permanent.
[root@satellite ~]#firewall-cmd --add-port="5646/tcp"success [root@satellite ~]#firewall-cmd --runtime-to-permanentsuccess
Verify that the ports on the satellite system are configured.
Keep open the satellite system terminal.
[root@satellite ~]#firewall-cmd --list-ports80/tcp 443/tcp 5647/tcp 8000/tcp 8140/tcp 9090/tcp 53/udp 53/tcp 67/udp 69/udp5646/tcp
On the capsule system, update the system to the latest RHEL packages, and then install the satellite-capsule package.
Enable the satellite-capsule:el8 module on the capsule system.
The command displays the warning "Modular dependency problems with Defaults".
The satellite-capsule:el8 module enables the postgresql:12 and ruby:2.7 modules, which conflict with the default RHEL 8 module versions.
You can safely bypass this warning.
[root@capsule ~]#dnf module enable satellite-capsule:el8...output omitted... Is this ok [y/N]:yComplete!
Update all of the packages on the capsule system.
Wait until the process completes.
[root@capsule ~]#dnf update...output omitted... Is this ok [y/d/N]:y...output omitted... Complete!
Reboot the capsule system.
When ready, log in again to the capsule system as the student user and switch to the root user.
[root@capsule ~]#rebootConnection to capsule closed by remote host. Connection to capsule closed. [student@workstation ~]$ssh student@capsule[student@capsule ~]$sudo -i[sudo] password for student:student[root@capsule]#
Install the satellite-capsule package.
Wait for the process to complete.
[root@capsule ~]#dnf install satellite-capsule...output omitted... Is this ok [y/d/N]:y...output omitted... Complete!
On the satellite system, generate a capsule SSL reboot certificate, and then copy it to the capsule system.
Create the /root/capsule_cert directory to store the generated SSL certificate.
[root@satellite ~]# mkdir /root/capsule_certGenerate the /root/capsule_cert/capsule_certs.tar SSL certificate archive.
Copy the satellite-installer command with all the options.
In a later step, you paste the command on the capsule system.
The capsule-certs-generate command generates both the SSL certificates and the command for you to install those certificates on the Capsule Server.
Sufficiently widen your terminal window to easily copy the generated command with the continuation backslash (\) character.
[root@satellite ~]# capsule-certs-generate \
--foreman-proxy-fqdn capsule.lab.example.com \
--certs-tar /root/capsule_cert/capsule_certs.tar
Preparing installation Done
Success!
...output omitted...
satellite-installer \
--scenario capsule \
--certs-tar-file "/root/capsule_certs.tar"\
--foreman-proxy-register-in-foreman "true"\
--foreman-proxy-foreman-base-url "https://satellite.lab.example.com"\
--foreman-proxy-trusted-hosts "satellite.lab.example.com"\
--foreman-proxy-trusted-hosts "capsule.lab.example.com"\
--foreman-proxy-oauth-consumer-key "SBQGBLPHyZPMS3npzrvqtYAHykL24t3x"\
--foreman-proxy-oauth-consumer-secret "MYqQYgcEqrYdQ3wYpRrttDcvPn8SWijs"Copy the newly generated SSL certificate to the capsule server.
[root@satellite ~]#scp /root/capsule_cert/capsule_certs.tar \ root@capsule.lab.example.com:/root/capsule_certs.tar...output omitted... Are you sure you want to continue connecting (yes/no/[fingerprint])?yes...output omitted... root@capsule.lab.example.com's password:redhatcapsule_certs.tar 100% 85KB 40.8MB/s 00:00
On the capsule server, deploy the capsule SSL certificate.
Enter or copy and paste the satellite-installer command that the capsule-certs-generate command displayed.
Wait for the process to complete, which is estimated to be five minutes.
[root@capsule ~]# satellite-installer \
--scenario capsule \
--certs-tar-file "/root/capsule_certs.tar"\
--foreman-proxy-register-in-foreman "true"\
--foreman-proxy-foreman-base-url "https://satellite.lab.example.com"\
--foreman-proxy-trusted-hosts "satellite.lab.example.com"\
--foreman-proxy-trusted-hosts "capsule.lab.example.com"\
--foreman-proxy-oauth-consumer-key "SBQGBLPHyZPMS3npzrvqtYAHykL24t3x"\
--foreman-proxy-oauth-consumer-secret "MYqQYgcEqrYdQ3wYpRrttDcvPn8SWijs"
...output omitted...
Success!
* Capsule is running at https://capsule.lab.example.com:9090
The full log is at /var/log/foreman-installer/capsule.logIn the Satellite Server web UI, assign the Capsule Server to manage the Boston location in the Operations organization.
In the upper-left corner of the web page, set the organization to Any Organization.
Set the location to Any Location.
The capsule.lab.example.com entry is visible only in the Any Organization context, until the Capsule Server is assigned to manage one or more organizations and locations.
Click → .
In the capsule.lab.example.com row, click .
Click the tab.
Click the Boston entry in the All items list to move the location to the Selected items list.
Click the tab.
Verify that the Operations organization is in the Selected items list.
Click .
Return to the workstation system as the student user.
[root@capsule ~]#exitlogout [student@capsule ~]$exitlogout Connection to capsule closed. [student@workstation ~]$