Project

General

Profile

Bug #2249

Updated by Dominic Cleal almost 11 years ago

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

Back