Feature #8239
closed
Allow MAC address parameter for /unattended, in addition to RHN headers
Added by Anonymous about 10 years ago.
Updated over 6 years ago.
Category:
Unattended installations
|
Description
We plan to use an iPXE workflow to provision hosts, without having to set DHCP leases, and need to be able to generate the /unattended/iPXE template from an IP address which is not the one set for the host in Foreman. It would be awesome if the find_host_by_ip_or_mac
method in UnattendedController
could look for a mac_address
GET parameter, in addition to the RHN-specific headers. I would then be able to set this parameter from iPXE.
- Related to Bug #10259: Template proxy does not lookup by MAC address added
Thank you Dominic. You showed me this pull request a while back and I used it in our deployment. Our current patch is available (https://github.com/cloudwatt/foreman/commit/9249735b76967999fff20f03edf632e469d5b94a) but, like the original pull request, doesn't have any test. It's one of the reason I don't submit a new pull request. The other is that, for the whole iPXE chain to work properly, we also need another patch (https://github.com/cloudwatt/foreman/commit/5462ac4eeb240155944ee80a6829395cd338480b) which, although quite small, is rather intrusive :) It allows for ipxe templates to be rendered with any authentication.
We have been using those two patches in our deployment for a while (with pre-release versions of 1.8), and they allow us to not need any DHCP and TFTP smart-proxy. Everything is done through HTTP requests to foreman, and IPs are configured on the nodes using the new interface capability and some custom chef code.
- Is duplicate of Feature #22756: Allow provisioning based on "mac" parameter added
- Status changed from New to Duplicate
Also available in: Atom
PDF