Create a provisioning configuration and provision a host in a managed location.
Outcomes
Create a host group and host resources to prepare for provisioning.
Provision a new content host by using a network-based installation.
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 provision-review
Instructions
You provision the servere system in multiple exercises in this chapter.
Before each exercise, the lab start script deletes the servere host resource record to simulate that you are provisioning a previously unused system.
Log in to the Satellite Server web UI, https://satellite.lab.example.com, as the admin user with the redhat password.
Verify that the Capsule Server is configured to support the Finance organization in the Tokyo location.
Synchronize the Build lifecycle environment to prepare for provisioning a new development content host.
In the upper-left corner of the web page, set the organization to Any Organization.
Set the location to Any Location.
Click → . In the row, click .
Click the tab. In the list, click to move it to the list.
Click the tab. In the list, verify that is in the list. If not, click on to move it.
Click the tab. In the list, verify that is in the list. If not, click on to move it. Click .
On the page, click . Click → to start the synchronization process. Wait for the process to complete.
In the upper-left corner of the web page, set the organization to Finance.
Set the location to Tokyo.
Verify that the capsule.lab.example.com system has DNS, DHCP, and TFTP services enabled.
Use the following settings:
Table 9.10. Service Parameters
| Parameter | Value |
|---|---|
| DNS network interface |
eth0
|
| DNS forwarder |
172.25.250.254
|
| DNS zone |
tokyo.lab.example.com
|
| DNS reverse |
250.25.172.in-addr.arpa
|
| DHCP network interface |
eth0
|
| DHCP range |
172.25.250.50 to 172.25.250.100
|
| Name server provided by DHCP |
172.25.250.220
|
| Gateway provided by DHCP |
172.25.250.254
|
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[root@capsule ~]#
Enable the DNS, DHCP, and TFTP services by using the parameters from the table in the Instructions section.
[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 tokyo.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.50 172.25.250.100" \
--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.logVerify that the DNS, DHCP, and TFTP features are active on the Capsule Server. Click → , and then click the link.
In the tab, verify that the section lists the DNS, DHCP, and TFTP services.
Return to the workstation system as the student user.
[root@capsule ~]#exitlogout [student@capsule ~]$exitlogout [student@workstation ~]$
Verify that the tokyo.lab.example.com DNS domain exists in the Finance organization and in the Tokyo location.
Verify the Tokyo Data Center subnet with the following settings.
Table 9.11. Tokyo Subnet Details
| Field | Value |
|---|---|
Tokyo Data Center
| |
172.25.250.0
| |
24
| |
172.25.250.254
| |
172.25.250.220
| |
DHCP
| |
172.25.250.50
| |
172.25.250.100
| |
DHCP
| |
tokyo.lab.example.com
| |
capsule.lab.example.com
|
Click → and then click link.
On the Subnet tab, verify the data from the preceding table.
Submit the form only when the remaining tabs are completed.
Click the tab. In the list, verify that is in the list.
Click the tab. Verify that is selected in every field on this page.
Click the tab. Verify that the location is in the list.
Click the tab. Verify that the organization is in the list. Click .
Create a Finance Provisioning host group with the following settings:
Table 9.12. Host Group Details
| Parameter | Value |
|---|---|
| Name |
Finance Provisioning
|
| Lifecycle environment |
Build
|
| Content view |
FinanceServerBase
|
| Content source |
capsule.lab.example.com
|
| Network domain |
tokyo.lab.example.com
|
| IPv4 subnet |
Tokyo Data Center (172.25.250.0/24)
|
| Operating system architecture |
x86_64
|
| Operating system |
RedHat 9.0
|
| Partition table |
Kickstart default
|
| PXE loader |
PXELinux BIOS
|
| Location |
Tokyo
|
| Organization |
Finance
|
| Activation key |
FinanceServers
|
Create a servere host resource with the following settings for the system to be provisioned:
Table 9.13. New Host Details
| Field | Value |
|---|---|
servere
| |
Finance
| |
Tokyo
| |
Finance Provisioning
| |
redhat123
| |
52:54:00:00:fa:0e
|
Click → .
On the Host tab, enter the initial data from the preceding table.
Setting the host group autofills the form with other group parameters.
Leave the other fields unchanged.
Submit the form only when the remaining tabs are completed.
Click the Operating System tab.
Enter the root password from the preceding table.
Click to confirm that the system can retrieve the provisioning templates.
Click the Interface tab.
Enter the MAC address from the preceding table.
Click .
Access the servere console and initiate a PXE boot.
Provisioning should proceed automatically.
The servere host should reboot automatically.
If the host does not reboot, then send a Ctrl+Alt+Del from the servere console.
Select from the menu.
Wait for the provisioning to complete and for the servere system to reboot.
Select the option.
On the servere console, log in as the root user with redhat123 as the password.
Use the hostname command to verify the system name.
servere loginrootPassword:redhat123[root@servere ~]#hostnameservere.tokyo.lab.example.com
Exit the servere system and close the console.
[root@servere ~]# exit
servere login: