X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/af2d1fe2d65c895a3465580770f5d4c0f4ec6995..481864ed956365260fa7ae05ac18248ae168f4cd:/cookbooks/dhcpd/templates/default/dhcpd.conf.erb diff --git a/cookbooks/dhcpd/templates/default/dhcpd.conf.erb b/cookbooks/dhcpd/templates/default/dhcpd.conf.erb index 69fdb05c5..93c751e77 100644 --- a/cookbooks/dhcpd/templates/default/dhcpd.conf.erb +++ b/cookbooks/dhcpd/templates/default/dhcpd.conf.erb @@ -1,6 +1,9 @@ # DO NOT EDIT - This file is being maintained by Chef -option architecture-type code 93 = unsigned integer 16; +option arch code 93 = unsigned integer 16; +# ilo5 expects TZ data per rfc4833 +option PCode code 100 = text; +option TCode code 101 = text; default-lease-time 600; max-lease-time 7200; @@ -15,21 +18,28 @@ subnet <%= interface[:network] %> netmask <%= interface[:netmask] %> { option domain-name-servers <%= interface[:gateway] %>; option ntp-servers <%= node[:ntp][:servers].first %>; - class "pxeclients" { - match if substring (option vendor-class-identifier, 0, 9) = "PXEClient"; - next-server <%= interface[:gateway] %>; - - if option architecture-type = 00:07 { - filename "netboot.xyz.efi"; - } else { - filename "netboot.xyz.kpxe"; - } + option time-offset 0; + option PCode "UTC0"; + option TCode "Etc/UTC"; + + next-server <%= interface[:gateway] %>; + + # See https://netboot.xyz/docs/docker/#dhcp-configurations + if exists user-class and ( option user-class = "iPXE" ) { + filename "http://boot.netboot.xyz/menu.ipxe"; + } elsif option arch = encode-int ( 16, 16 ) { + filename "http://boot.netboot.xyz/ipxe/netboot.xyz.efi"; + option vendor-class-identifier "HTTPClient"; + } elsif option arch = 00:07 { + filename "netboot.xyz.efi"; + } else { + filename "netboot.xyz.kpxe"; } } <% end -%> host oob1.ams.openstreetmap.org { - hardware ethernet dc:a6:32:49:56:da; + hardware ethernet ea:e4:8e:c2:5b:19; server-name "oob1.ams.openstreetmap.org"; fixed-address oob1.ams.openstreetmap.org; } @@ -47,7 +57,7 @@ host pdu2.ams.openstreetmap.org { } host oob1.dub.openstreetmap.org { - hardware ethernet f6:43:70:77:29:60; + hardware ethernet 62:bd:62:a6:05:25; server-name "oob1.dub.openstreetmap.org"; fixed-address oob1.dub.openstreetmap.org; } @@ -106,6 +116,12 @@ host eustace.oob.openstreetmap.org { fixed-address eustace.oob.openstreetmap.org; } +host faffy.oob.openstreetmap.org { + hardware ethernet 98:f2:b3:21:f6:e2; + server-name "faffy.oob.openstreetmap.org"; + fixed-address faffy.oob.openstreetmap.org; +} + host fafnir.oob.openstreetmap.org { hardware ethernet 38:63:bb:39:f0:96; server-name "fafnir.oob.openstreetmap.org"; @@ -196,12 +212,6 @@ host odin.oob.openstreetmap.org { fixed-address odin.oob.openstreetmap.org; } -host oob1.dub.openstreetmap.org { - hardware ethernet dc:a6:32:ec:d4:ee; - server-name "oob1.dub.openstreetmap.org"; - fixed-address oob1.dub.openstreetmap.org; -} - host pummelzacken.oob.openstreetmap.org { hardware ethernet 00:25:90:cf:72:73; server-name "pummelzacken.oob.openstreetmap.org";