X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/14e316cd3e1ab5f25a54d0765ebad61ac665ccb4..68e068818d559ef35bdf2a138a93596337828ef9:/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 b5c8dae33..37d9226c1 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; @@ -13,17 +16,24 @@ subnet <%= interface[:network] %> netmask <%= interface[:netmask] %> { option routers <%= interface[:gateway] %>; option domain-name "<%= @domain %>"; 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 ntp-servers <%= node[:ntp][:servers].join(", ") %>; + + 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 -%> @@ -94,18 +104,18 @@ host eddie.oob.openstreetmap.org { fixed-address eddie.oob.openstreetmap.org; } -host errol.oob.openstreetmap.org { - hardware ethernet 00:e0:81:c0:8d:01; - server-name "errol.oob.openstreetmap.org"; - fixed-address errol.oob.openstreetmap.org; -} - host eustace.oob.openstreetmap.org { hardware ethernet 1c:c1:de:71:4d:2e; server-name "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"; @@ -160,12 +170,6 @@ host konqi.oob.openstreetmap.org { fixed-address konqi.oob.openstreetmap.org; } -host lockheed.oob.openstreetmap.org { - hardware ethernet 44:1e:a1:57:8f:fe; - server-name "lockheed.oob.openstreetmap.org"; - fixed-address lockheed.oob.openstreetmap.org; -} - host longma.oob.openstreetmap.org { hardware ethernet 3c:ec:ef:2f:6d:4e; server-name "longma.oob.openstreetmap.org"; @@ -352,12 +356,6 @@ host thorn-03.oob.openstreetmap.org { fixed-address thorn-03.oob.openstreetmap.org; } -host urmel.oob.openstreetmap.org { - hardware ethernet 1c:c1:de:e7:4d:b2; - server-name "urmel.oob.openstreetmap.org"; - fixed-address urmel.oob.openstreetmap.org; -} - host ysera.oob.openstreetmap.org { hardware ethernet ac:1f:6b:c1:40:2a; server-name "ysera.oob.openstreetmap.org";