Project

General

Profile

Actions

Feature #3562

closed

Default template "Boot disk gPXE - host" should use host MAC address when requesting gPXE template from Foreman

Added by Jon Fautley over 10 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

The 'chain' line should be changed to something along the lines of:

chain <%= (u = URI.parse(foreman_url("gPXE")); u.query ="#{u.query}&mac=#{@host.mac}"; u.to_s) %>

This will pass the host MAC address to the template request, allowing the bootdisks to work on hosts behind NAT gateways. By default, all Foreman can see is the originating IP (which in my case is a NAT gateway).

Actions #1

Updated by Dominic Cleal about 10 years ago

  • Status changed from New to Closed
  • Target version set to 1.9.1
  • % Done changed from 0 to 100

Sorry for missing this, merged as 7444250, thanks!

Actions

Also available in: Atom PDF