Feature #3562

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

Added by Jon Fautley over 4 years ago. Updated 4 days ago.

Status:Closed
Priority:Normal
Assignee:-
Category:-
Target version:1.9.1
Difficulty: Team Backlog:
Triaged: Fixed in Releases:
Bugzilla link: Found in Releases:
Pull request:

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
Added by Jon Fautley over 4 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