Bug #2249
closed@kernel and @initrd fail to render in a PXElinux config when spoofing a host
Description
Hi,
Using Foreman 1.1-stable3.el6 (from the stable repo) on CentOS6, I noticed that, when I try to render a PXELinux template for a Debian host in the web interface, the @kernel and @initrd variables are not expanded.
The template renders correctly when generating the actual config, so the problem is certainly on the spoof side.
For reference, here is the template :
----------
default linux
label linux
kernel <%= @kernel >
append initrd=<= @initrd > netcfg/choose_interface=auto url=<= foreman_url("provision")%> auto=true netcfg/get_hostname=unassigned-hostname netcfg/get_domain=unassigned-domain
----------
What's really interesting is that the provision url gets expanded correctly...
Thanks in advance for looking into it,
Nicolas
Updated by Dominic Cleal about 11 years ago
- Is duplicate of Bug #3239: Spoofing of PXELinux template does not work added
Updated by Dominic Cleal about 11 years ago
- Description updated (diff)
- Category set to Templates
- Status changed from New to Duplicate
I'm pretty sure this is the same issue which we've just fixed in #3239 ready for Foreman 1.3.1. If you see it in there or nightlies, please do re-open. Thanks for the report!