Project

General

Profile

Actions

Bug #2249

closed

@kernel and @initrd fail to render in a PXElinux config when spoofing a host

Added by Nicolas Dandrimont almost 12 years ago. Updated about 11 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
Templates
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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


Related issues 1 (0 open1 closed)

Is duplicate of Foreman - Bug #3239: Spoofing of PXELinux template does not workClosedLukas Zapletal10/11/2013Actions
Actions #1

Updated by Dominic Cleal about 11 years ago

  • Is duplicate of Bug #3239: Spoofing of PXELinux template does not work added
Actions #2

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!

Actions

Also available in: Atom PDF