Problem:
At work we are using Foreman in order to provision servers. But we would like to (somehow) use Foreman to provision / configure a (Dell) switch. What we need to configure a Dell switch is as follows:
- Create a template file in the TFTP folder (so not a PXELinux template file but a non-pxe template file) containing the Dell switch configuration
- Instead of using the DHCP ‘filename’ option use the DHCP ‘configfile’ option which provides the path to the (rendered) template file.
I expect that (automatically) adding the ‘configfile’ DHCP option when adding a host (actually a switch) to Foreman will be not possible yet? Or is there a way to accomplish this?
But what would be the best approach to let Foreman render my defined template file (non-pxe) in a user-defined folder in the TFTP directory? Which template type do I need so when I add a host, this template will be rendered in a pre-defined TFTP folder?
Expected outcome:
When adding a host to Foreman create a template file what will be rendered when a host is added to Foreman. This template file should be placed in the TFTP folder. If it is possible, DHCP should NOT use the ‘filename’ option but the ‘configfile’ option, referencing the created template file in the TFTP folder.
Foreman and Proxy versions:
Foreman 1.24
Foreman and Proxy plugin versions:
Distribution and version:
Debian 9
Other relevant data:
It would be great if someone can give some hints / solutions for solving this problem!
Thank you in advance!