Files
warewulf/etc/dhcp/default-dhcpd.conf
Niko Kivel 70735c144f dhcpPersist variable, update wwctl services to wwctl configure in default confs
* fixed wrong variable for kernel arguments
* fixed wrong variable for persistence
* fixed recreate command hint
2021-01-27 23:36:59 +09:00

41 lines
1.3 KiB
Plaintext

# This file is created and was written by a Warewulf template. It is strongly
# suggested that you do not edit this file, but rather, edit the template and
# recreate this file using Warewulf (wwctl configure dhcp)
allow booting;
allow bootp;
ddns-update-style interim;
authoritative;
option space ipxe;
# Tell iPXE to not wait for ProxyDHCP requests to speed up boot.
option ipxe.no-pxedhcp code 176 = unsigned integer 8;
option ipxe.no-pxedhcp 1;
option architecture-type code 93 = unsigned integer 16;
if exists user-class and option user-class = "iPXE" {
filename "http://{{$.Ipaddr}}:9873/ipxe/${mac:hexhyp}";
} else {
if option architecture-type = 00:0B {
filename "/warewulf/ipxe/bin-arm64-efi/snp.efi";
} elsif option architecture-type = 00:0A {
filename "/warewulf/ipxe/bin-arm32-efi/placeholder.efi";
} elsif option architecture-type = 00:09 {
filename "/warewulf/x86.efi";
} elsif option architecture-type = 00:07 {
filename "/warewulf/x86.efi";
} elsif option architecture-type = 00:06 {
filename "/warewulf/i386.efi";
} elsif option architecture-type = 00:00 {
filename "/warewulf/i386.kpxe";
}
}
subnet {{$.Network}} netmask {{$.Netmask}} {
range {{$.RangeStart}} {{$.RangeEnd}};
next-server {{$.Ipaddr}};
}