Chapter 3. Configuring TFTP integration
You can integrate TFTP with Satellite to perform unattended installations by booting the operating system’s setup over the network.
3.1. Enabling the installer-managed TFTP service Copy linkLink copied to clipboard!
If you do not have a TFTP server available in your network, you can use the installer-managed TFTP service to perform unattended installations. With the installer-managed TFTP service, you can run a TFTP server with a low maintenance effort because Satellite fully manages the TFTP service, including the files on that service.
Procedure
Configure your Satellite Server or Capsule Server as the TFTP server:
satellite-installer \ --foreman-proxy-tftp true \ --foreman-proxy-tftp-managed true
# satellite-installer \ --foreman-proxy-tftp true \ --foreman-proxy-tftp-managed true
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
3.2. Integrating a generic TFTP server Copy linkLink copied to clipboard!
If you have a TFTP server in your network, you can integrate this service into your Satellite. The integration enables you to continue using your existing TFTP server. With this type of integration, Satellite uses the Network File System (NFS) protocol to access the root directory of the TFTP service.
If you prefer a low maintenance solution that also manages files on the TFTP server, use the installer-managed TFTP service.
3.2.1. Configuring Satellite Server for use with tftp Copy linkLink copied to clipboard!
After you have prepared the TFTP server, integrate it into your Satellite Server or Capsule Server.
Prerequisites
-
You shared the
/exports/var/lib/tftpboot
on the TFTP server with NFS.
Procedure
Create the directory into which you later mount the NFS share:
mkdir -p /mnt/nfs/var/lib/tftpboot
# mkdir -p /mnt/nfs/var/lib/tftpboot
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Edit the
/etc/fstab
file, and add entry for the NFS share to mount them automatically when the system boots:tftp_server_fqdn:/exports/var/lib/tftpboot /mnt/nfs/var/lib/tftpboot nfs rw,vers=3,auto,nosharecache,context="system_u:object_r:tftpdir_rw_t:s0" 0 0
tftp_server_fqdn:/exports/var/lib/tftpboot /mnt/nfs/var/lib/tftpboot nfs rw,vers=3,auto,nosharecache,context="system_u:object_r:tftpdir_rw_t:s0" 0 0
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Mount the NFS share:
mount /mnt/nfs/var/lib/tftpboot/
# mount /mnt/nfs/var/lib/tftpboot/
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Configure Satellite Server or Capsule Server to use the TFTP server:
satellite-installer \ --foreman-proxy-tftp true \ --foreman-proxy-managed false \ --foreman-proxy-tftp-root /mnt/nfs/var/lib/tftpboot \ --foreman-proxy-tftp-servername tftp_server_fqdn
# satellite-installer \ --foreman-proxy-tftp true \ --foreman-proxy-managed false \ --foreman-proxy-tftp-root /mnt/nfs/var/lib/tftpboot \ --foreman-proxy-tftp-servername tftp_server_fqdn
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - For each affected Capsule, update the configuration of that Capsule in the Satellite web UI. For more information, see Section 3.3, “Associating the TFTP service with a subnet”.
3.3. Associating the TFTP service with a subnet Copy linkLink copied to clipboard!
After you configured or changed the TFTP provider, you must update the configuration of each affected Capsule in the Satellite web UI.
Prerequisites
- You configured a TFTP server.
Procedure
- In the Satellite web UI, navigate to Infrastructure > Subnets.
- Select the subnet name.
- On the Capsules tab, select the Capsule for TFTP.
- Click Submit.
3.4. Disabling TFTP for integration Copy linkLink copied to clipboard!
If you want to manually manage a TFTP service and not integrate it into Satellite, you must prevent Satellite from maintaining this service on the operating system and disable orchestration to avoid errors.
Disabling TFTP in Satellite does not remove the related backend service on the operating system.
Procedure
- In the Satellite web UI, navigate to Infrastructure > Subnets.
For each subnet that is associated with the TFTP Capsule:
- Select the subnet.
- On the Capsules tab, clear the TFTP Capsule field.
- Click Submit.
On Satellite Server, enter:
satellite-installer --foreman-proxy-tftp false
# satellite-installer --foreman-proxy-tftp false
Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteSatellite does not perform orchestration when a Capsule is not set for a given subnet. When you disable Capsule associations, orchestration commands for existing hosts can fail if the expected records and configuration files are not present.