mirror of
https://github.com/davidallendj/configurator.git
synced 2025-12-20 03:27:02 -07:00
48 lines
No EOL
1.6 KiB
Django/Jinja
48 lines
No EOL
1.6 KiB
Django/Jinja
#
|
|
# This file was auto-generated by the OpenCHAMI "configurator" tool using the "{{name}}" plugin.
|
|
#
|
|
# Source code: https://github.com/OpenCHAMI/configurator
|
|
# Creating plugins: https://github.com/OpenCHAMI/configurator/blob/main/README.md#creating-generator-plugins
|
|
#
|
|
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}/WW/ipxe/cfg/${mac}";
|
|
} 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/ipxe/bin-x86_64-efi/snp.efi";
|
|
} elsif option architecture-type = 00:07 {
|
|
filename "/warewulf/ipxe/bin-x86_64-efi/snp.efi";
|
|
} elsif option architecture-type = 00:06 {
|
|
filename "/warewulf/ipxe/bin-i386-efi/snp.efi";
|
|
} elsif option architecture-type = 00:00 {
|
|
filename "/warewulf/ipxe/bin-i386-pcbios/undionly.kpxe";
|
|
}
|
|
}
|
|
|
|
subnet %{NETWORK} netmask %{NETMASK} {
|
|
not authoritative;
|
|
# option interface-mtu 9000;
|
|
option subnet-mask %{NETMASK};
|
|
}
|
|
|
|
# Compute Nodes (WIP - see the dhcpd generator plugin)
|
|
{{ compute_nodes }}
|
|
|
|
# Node entries will follow below
|
|
{{ node_entries }} |