added host IP address to dhcpd.conf template

This commit is contained in:
Shannon V. Davidson
2020-12-03 19:40:39 -06:00
parent eb19627e13
commit 76feee14c4
3 changed files with 46 additions and 46 deletions

View File

@@ -16,7 +16,7 @@ option ipxe.no-pxedhcp 1;
option architecture-type code 93 = unsigned integer 16;
if exists user-class and option user-class = "iPXE" {
filename "http://192.168.1.1:9873/ipxe/${mac:hexhyp}";
filename "http://{{$.Ipaddr}}:9873/ipxe/${mac:hexhyp}";
} else {
if option architecture-type = 00:0B {
filename "/warewulf/ipxe/bin-arm64-efi/snp.efi";

View File

@@ -16,7 +16,7 @@ option ipxe.no-pxedhcp 1;
option architecture-type code 93 = unsigned integer 16;
if exists user-class and option user-class = "iPXE" {
filename "http://192.168.1.1:9873/ipxe/${mac:hexhyp}";
filename "http://{{$.Ipaddr}}:9873/ipxe/${mac:hexhyp}";
} else {
if option architecture-type = 00:0B {
filename "/warewulf/ipxe/bin-arm64-efi/snp.efi";