Configure Satellite provisioning resources and services, and then provision a new content host.
Outcomes
Configure the Capsule Server to provide DNS, DHCP, and TFTP services.
Prepare provisioning resources on the Satellite Server.
Perform a network-based provision of a new content host.
The comprehensive review labs are related exercises, and you can start with any lab in the sequence. If you reset your lab environment before your first comprehensive review lab, then you do not need to reset again. If you did not reset your lab environment after performing exercises from previous chapters, then you must reset your lab environment before starting any comprehensive review lab.
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 compreview-host
Specifications
Prepare the following repositories that are required to install a RHEL 9 content host in the Finance organization and the San Francisco location.
Red Hat Enterprise Linux 9 for x86_64 - AppStream Kickstart 9.0
Red Hat Enterprise Linux 9 for x86_64 - BaseOS Kickstart 9.0
Create, publish, and promote the FinanceServerBase content view to the Build lifecycle environment in the Finance organization.
Create the FinanceServers activation key that assigns new clients to the Build lifecycle environment with the FinanceServerBase content view.
Synchronize the Build lifecycle with Capsule Server.
Enable the DNS, DHCP, and TFTP features on Capsule Server with the following details:
Table 13.1. Service Parameters
| Parameter | Value |
|---|---|
| DNS interface |
eth0
|
| DNS forwarders |
172.25.250.254
|
| DNS zone |
sf.lab.example.com
|
| DNS reverse |
250.25.172.in-addr.arpa
|
| DHCP interface |
eth0
|
| DHCP range |
172.25.250.70 to 172.25.250.90
|
| DHCP name servers |
172.25.250.220
|
| DHCP gateway |
172.25.250.254
|
Configure the domain and subnet on Satellite Server with the following details:
Table 13.2. San Francisco Subnet Details
| Parameter | Value |
|---|---|
San Francisco Data Center
| |
172.25.250.0
| |
24
| |
172.25.250.220
| |
172.25.250.70
| |
172.25.250.90
| |
capsule.lab.example.com
|
Create the Finance host group with the following details:
Table 13.3. Host Group Details
| Parameter | Value |
|---|---|
| Name |
Finance
|
| Lifecycle environment |
Build
|
| Content view |
FinanceServerBase
|
| Content Source |
capsule.lab.example.com
|
| DNS domain |
sf.lab.example.com
|
| Subnet |
San Francisco Data Center
|
| Operating system |
RedHat 9.0
|
| Partition table template |
Kickstart default
|
| Activation key |
FinanceServers
|
Create a host resource for the system to be provisioned:
Table 13.4. Host Resource Details
| Parameter | Value |
|---|---|
| Name |
servere
|
| Host group |
Finance
|
| root password |
redhat123
|
| MAC address |
52:54:00:00:fa:0e
|
Reboot and provision the servere content host.
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 Finance.
Set the location to San Francisco.
Verify that the following repositories are synchronized and are promoted in the FinanceServerBase content view.
Red Hat Enterprise Linux 9 for x86_64 - AppStream Kickstart 9.0
Red Hat Enterprise Linux 9 for x86_64 - BaseOS Kickstart 9.0
Click → , and then click the link.
Verify that the two repositories display a Success status in the column.
Click → , and then click the link.
Click . Verify that the content view version contains the and repositories. Verify that the content view version is in the lifecycle environment.
Verify that the FinanceServers activation key is configured to assign content hosts to the Build lifecycle environment with the FinanceServerBase content view.
Click → , and then click the link.
In the section, verify that the Build lifecycle environment and the FinanceServerBase content view are selected.
Synchronize the Build lifecycle environment from the Satellite Server to the Capsule Server.
Click → . On the row, click .
Click the tab. In the list, click the environment to move it to the list. Click .
On the page, click the link. Click → . Wait for the process to complete.
Enable and configure the DNS, DHCP, and TFTP services on the capsule system.
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 ~]#
Enable the DNS, DHCP, and TFTP services.
[root@capsule ~]# satellite-installer --scenario capsule \
--foreman-proxy-dns true \
--foreman-proxy-dns-interface eth0 \
--foreman-proxy-dns-forwarders 172.25.250.254 \
--foreman-proxy-dns-zone sf.lab.example.com \
--foreman-proxy-dns-reverse 250.25.172.in-addr.arpa \
--foreman-proxy-dhcp true \
--foreman-proxy-dhcp-interface eth0 \
--foreman-proxy-dhcp-range '172.25.250.70 172.25.250.90' \
--foreman-proxy-dhcp-nameservers 172.25.250.220 \
--foreman-proxy-dhcp-gateway 172.25.250.254 \
--foreman-proxy-tftp true
...output omitted...
Success!
* Capsule is running at https://capsule.lab.example.com:9090
The full log is at /var/log/foreman-installer/capsule.logReturn to the workstation system as the student user.
[root@capsule ~]#exitlogout [student@capsule ~]$exitlogout [student@workstation ~]$
Create and configure the San Francisco location's DNS domain and subnet in the Finance organization.
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 ~]#
Create the sf.lab.example.com DNS domain.
[root@satellite ~]# hammer domain create \
--organization Finance \
--name sf.lab.example.com
Domain [sf.lab.example.com] created.Assign the domain parameters to the sf.lab.example.com domain.
[root@satellite ~]# hammer domain update \
--organizations Finance \
--locations "San Francisco" \
--name sf.lab.example.com \
--dns capsule.lab.example.com
Domain [sf.lab.example.com] updated.Note the Capsule Server ID.
[root@satellite ~]#hammer capsule list \ --search capsule.lab.example.com \ --fields Id,Name---|------------------------ ID | NAME ---|------------------------2| capsule.lab.example.com ---|------------------------
Create the San Francisco Data Center subnet by using the Capsule Server ID from the previous command output.
[root@satellite ~]# hammer subnet create \
--name "San Francisco Data Center" \
--organizations Finance \
--locations "San Francisco" \
--network 172.25.250.0 \
--mask 255.255.255.0 \
--dns-primary 172.25.250.220 \
--ipam DHCP \
--from 172.25.250.70 \
--to 172.25.250.90 \
--boot-mode DHCP \
--dns capsule.lab.example.com \
--dhcp capsule.lab.example.com \
--tftp capsule.lab.example.com \
--template-id 2 \
--domains sf.lab.example.com
Subnet created.Create the Finance host group.
Click → , and then click .
Enter the following details. Leave the other fields unmodified. Submit the form only after the other tabs are completed.
Click the tab.
Select sf.lab.example.com in the field.
Select San Francisco Data Center (172.25.250.0/24) in the field.
Click the tab, and then complete the page with the following details. Leave the other fields unmodified. Submit the form only after the other tabs are completed.
Click the tab to verify that the location is in the list.
Click the tab to verify that the organization is in the list.
Click the tab, and then select FinanceServers in the field.
Click .
Create a servere host resource.
Click → . Enter the following details. Leave the other fields unmodified. Submit the form only after the other tabs are completed.
Click the tab.
Enter redhat123 in the field.
Click to confirm that the system can retrieve the provisioning templates.
Click the tab, and then click at the end of the interface row.
Enter 52:54:00:00:fa:0e in the field.
Click .
Click .
Access the servere console and initiate a PXE boot.
Locate your servere system console, as appropriate for your classroom environment.
Open the console.
Reboot the server system by using the relevant technique for your classroom environment.
The provisioning process starts automatically.
If the provision process does not start, then select Kickstart default PXELinux in the Booting into OS installer menu.
Wait for the provisioning to complete.
Wait for the installation to complete and for the system to reboot.
From the console, log in as root with redhat123 as a password.
Verify the system name.
[root@servere ~]# hostname
servere.sf.lab.example.comWhen done, log out from servere and close the console.
[root@servere ~]# exit
logout