Project

General

Profile

Feature #3562

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

Added by Jon Fautley about 5 years ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Team Backlog:
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).

Associated revisions

Revision 74442505 (diff)
Added by Jon Fautley almost 5 years ago

fixes #3562 - use MAC when requesting iPXE template to support NAT

History

#1 Updated by Dominic Cleal over 4 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!

Also available in: Atom PDF