Remove static-dhcp example
The original intent of this example appears to now be included in the real / default dhcp template included in the host overlay. If I'm understanding correctly, the presence of this example is just a source of confusion now. (I previously directed someone to use this example config, overwriting what's in the default overlay, because I didn't realize that static-dhcp functionality was just a configuration parameter away.) Signed-off-by: Jonathon Anderson <janderson@ciq.co>
This commit is contained in:
@@ -1,43 +0,0 @@
|
||||
{{- if .Dhcp.Enabled }}
|
||||
# This file is autogenerated by warewulf
|
||||
# Host: {{.BuildHost}}
|
||||
# Time: {{.BuildTime}}
|
||||
# Source: {{.BuildSource}}
|
||||
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}}:{{.Warewulf.Port}}/ipxe/${mac:hexhyp}";
|
||||
} else {
|
||||
if option architecture-type = 00:0B {
|
||||
filename "/warewulf/arm64.efi";
|
||||
} elsif option architecture-type = 00:09 {
|
||||
filename "/warewulf/x86_64.efi";
|
||||
} elsif option architecture-type = 00:00 {
|
||||
filename "/warewulf/x86_64.kpxe";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
subnet {{$.Network}} netmask {{$.Netmask}} {
|
||||
next-server {{$.Ipaddr}};
|
||||
}
|
||||
|
||||
{{range $nodes := .Nodes}}
|
||||
host {{$nodes.Id.Get}} {
|
||||
hardware ethernet {{$nodes.NetDevs.eth0.Hwaddr.Get}};
|
||||
fixed-address {{$nodes.NetDevs.eth0.Ipaddr.Get}};
|
||||
}
|
||||
{{end}}
|
||||
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user