X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/4b9ff0fb9a716ff89b779eac80c7e36cffbaa062..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 1d3ef5bc5..37d9226c1 100644 --- a/cookbooks/dhcpd/templates/default/dhcpd.conf.erb +++ b/cookbooks/dhcpd/templates/default/dhcpd.conf.erb @@ -1,5 +1,10 @@ # DO NOT EDIT - This file is being maintained by Chef +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; <% node.interfaces(:role => :internal).each do |interface| -%> @@ -11,10 +16,34 @@ 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 %>; + 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 -%> +host oob1.ams.openstreetmap.org { + hardware ethernet ea:e4:8e:c2:5b:19; + server-name "oob1.ams.openstreetmap.org"; + fixed-address oob1.ams.openstreetmap.org; +} + host pdu1.ams.openstreetmap.org { hardware ethernet 00:c0:b7:e3:e8:f2; server-name "pdu1.ams.openstreetmap.org"; @@ -27,6 +56,12 @@ host pdu2.ams.openstreetmap.org { fixed-address pdu2.ams.openstreetmap.org; } +host oob1.dub.openstreetmap.org { + hardware ethernet 62:bd:62:a6:05:25; + server-name "oob1.dub.openstreetmap.org"; + fixed-address oob1.dub.openstreetmap.org; +} + host pdu1.dub.openstreetmap.org { hardware ethernet 28:29:86:48:f7:f5; server-name "pdu1.dub.openstreetmap.org"; @@ -69,30 +104,42 @@ 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"; fixed-address fafnir.oob.openstreetmap.org; } +host gorwen.oob.openstreetmap.org { + hardware ethernet d8:9d:67:5f:bd:bc; + server-name "gorwen.oob.openstreetmap.org"; + fixed-address gorwen.oob.openstreetmap.org; +} + host grindtooth.oob.openstreetmap.org { hardware ethernet 98:4b:e1:6d:77:85; server-name "grindtooth.oob.openstreetmap.org"; fixed-address grindtooth.oob.openstreetmap.org; } +host horntail.oob.openstreetmap.org { + hardware ethernet 3c:ec:ef:82:ac:d2; + server-name "horntail.oob.openstreetmap.org"; + fixed-address horntail.oob.openstreetmap.org; +} + host idris.oob.openstreetmap.org { hardware ethernet 94:57:a5:50:b5:a0; server-name "idris.oob.openstreetmap.org"; @@ -105,6 +152,12 @@ host ironbelly.oob.openstreetmap.org { fixed-address ironbelly.oob.openstreetmap.org; } +host jakelong.oob.openstreetmap.org { + hardware ethernet d8:9d:67:66:02:9e; + server-name "jakelong.oob.openstreetmap.org"; + fixed-address jakelong.oob.openstreetmap.org; +} + host karm.oob.openstreetmap.org { hardware ethernet 0c:c4:7a:67:cf:c4; server-name "karm.oob.openstreetmap.org"; @@ -117,10 +170,10 @@ 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"; + fixed-address longma.oob.openstreetmap.org; } host naga.oob.openstreetmap.org { @@ -135,42 +188,24 @@ host noquiklos.oob.openstreetmap.org { fixed-address noquiklos.oob.openstreetmap.org; } +host norbert.oob.openstreetmap.org { + hardware ethernet 3c:ec:ef:82:ac:cf; + server-name "norbert.oob.openstreetmap.org"; + fixed-address norbert.oob.openstreetmap.org; +} + host odin.oob.openstreetmap.org { hardware ethernet ac:1f:6b:c0:59:a3; server-name "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 orm.oob.openstreetmap.org { - hardware ethernet 00:e0:81:c5:26:80; - server-name "orm.oob.openstreetmap.org"; - fixed-address orm.oob.openstreetmap.org; -} - -host ouroboros.oob.openstreetmap.org { - hardware ethernet d4:85:64:4c:3d:00; - server-name "ouroboros.oob.openstreetmap.org"; - fixed-address ouroboros.oob.openstreetmap.org; -} - host pummelzacken.oob.openstreetmap.org { hardware ethernet 00:25:90:cf:72:73; server-name "pummelzacken.oob.openstreetmap.org"; fixed-address pummelzacken.oob.openstreetmap.org; } -host ramoth.oob.openstreetmap.org { - hardware ethernet 0c:c4:7a:af:75:eb; - server-name "ramoth.oob.openstreetmap.org"; - fixed-address ramoth.oob.openstreetmap.org; -} - host ridley.oob.openstreetmap.org { hardware ethernet d4:85:64:52:2d:d8; server-name "ridley.oob.openstreetmap.org"; @@ -195,6 +230,12 @@ host snap-02.oob.openstreetmap.org { fixed-address snap-02.oob.openstreetmap.org; } +host snap-03.oob.openstreetmap.org { + hardware ethernet 3c:ec:ef:82:ab:f2; + server-name "snap-03.oob.openstreetmap.org"; + fixed-address snap-03.oob.openstreetmap.org; +} + host smaug.oob.openstreetmap.org { hardware ethernet 00:30:48:9d:57:ff; server-name "smaug.oob.openstreetmap.org"; @@ -315,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";