I would like to use the foreman proxy to boot iPXE and provide it a bootfile.I have no clue how to configure this in foreman if it is possible so i hacked the dhcp config to include:
option client-architecture code 93 = unsigned integer 16;
if exists user-class and option user-class = "iPXE" {
filename "http://foreman.server.local/unattended/iPXE";
} elsif option client-architecture = 00:00 {
filename "undionly.kpxe";
} else {
filename "ipxe.efi";
}
This is not a good solution but it’s mainly for finding a working solution.
If i boot uefi it works with above config. Than i can start autodiscovery and the host shows up. It a windows host that has to start using IPXE with a custom file: filename "http://foreman.server.local/unattended/iPXE";
but it seems foreman does something with the DHCP server using it’s API. I can select iPXE but the filename part is missing and ill end up having a bootloop.
If i restart the DHCP server the config above kicks in and the installation works.
Does anyone know if it is possible to override the filename on OS basis like u can do pxe-loader?