7.4. Discovery Templates and Snippets Settings
To use the Discovery service, you must configure provisioning settings to set Discovery as the default service and set the templates that you want to use.
Setting Discovery Service as Default
For both BIOS and UEFI, to set the Discovery service as the default service that boots for hosts that are not present in your current Satellite inventory, complete the following steps:
- In the Satellite web UI, navigate to Administer > Settings and click the Provisioning tab.
-
For the Default PXE global template entry, in the Value column, enter
discovery.
To use a template, in the Satellite web UI, navigate to Administer > Settings and click the Provisioning tab and set the templates that you want to use.
Customizing Templates and Snippets
Templates and snippets are locked to prevent changes. If you want to edit a template or snippet, clone it, save it with a unique name, and then edit the clone.
When you change the template or a snippet it includes, the changes must be propagated to Satellite Server’s default PXE template.
In the Satellite web UI, navigate to Hosts > Provisioning Templates and click Build PXE Default.
This refreshes the default PXE template on Satellite Server.
Additional Settings
- The proxy.url argument
-
During the Satellite installation process, if you use the default option
--enable-foreman-plugin-discovery, you can edit theproxy.urlargument in the template to set the URL of Capsule Server that provides the discovery service. You can change theproxy.urlargument to the IP address or FQDN of another provisioning Capsule that you want to use, but ensure that you append the port number, for example,9090. If you use an alternative port number with the--foreman-proxy-ssl-portoption during Satellite installation, you must add that port number. You can also edit theproxy.urlargument to use a Satellite IP address or FQDN so that the discovered hosts communicate directly with Satellite Server. - The proxy.type argument
If you use a Capsule Server FQDN for the
proxy.urlargument, ensure that you set theproxy.typeargument toproxy. If you use a Satellite FQDN, update theproxy.typeargument toforeman.proxy.url=https://capsule.example.com:9090 proxy.type=proxy
proxy.url=https://capsule.example.com:9090 proxy.type=proxyCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Rendering the Capsule’s Host Name
Satellite 6 deploys the same template to all TFTP Capsules and there is no variable or macro available to render the Capsule’s host name. The hard-coded proxy.url does not not work with two or more TFTP Capsules. As a workaround, every time you click Build PXE Defaults, edit the configuration file in the TFTP directory using SSH, or use a common DNS alias for appropriate subnets.
Tagged VLAN Provisioning
If you want to use tagged VLAN provisioning, and you want the discovery service to send a discovery request, add the following information to the KERNEL option in the discovery template:
fdi.vlan.primary=example_VLAN_ID
fdi.vlan.primary=example_VLAN_ID