X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/68e068818d559ef35bdf2a138a93596337828ef9..7171b94a0526152910353dbf1f07a0ee597976da:/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 37d9226c1..50ffd62d5 100644 --- a/cookbooks/dhcpd/templates/default/dhcpd.conf.erb +++ b/cookbooks/dhcpd/templates/default/dhcpd.conf.erb @@ -7,22 +7,21 @@ option TCode code 101 = text; default-lease-time 600; max-lease-time 7200; -<% node.interfaces(:role => :internal).each do |interface| -%> +<% node.ipaddresses(:role => :internal, :family => :inet).each do |address| -%> -subnet <%= interface[:network] %> netmask <%= interface[:netmask] %> { +subnet <%= address.network %> netmask <%= address.netmask %> { authoritative; range dynamic-bootp <%= node[:dhcpd][:first_address] %> <%= node[:dhcpd][:last_address] %>; - # option broadcast-address <%= interface[:broadcast] %>; - option routers <%= interface[:gateway] %>; + option routers <%= address.gateway %>; option domain-name "<%= @domain %>"; - option domain-name-servers <%= interface[:gateway] %>; + option domain-name-servers <%= address.gateway %>; option ntp-servers <%= node[:ntp][:servers].join(", ") %>; option time-offset 0; option PCode "UTC0"; option TCode "Etc/UTC"; - next-server <%= interface[:gateway] %>; + next-server <%= address.gateway %>; # See https://netboot.xyz/docs/docker/#dhcp-configurations if exists user-class and ( option user-class = "iPXE" ) { @@ -33,7 +32,7 @@ subnet <%= interface[:network] %> netmask <%= interface[:netmask] %> { } elsif option arch = 00:07 { filename "netboot.xyz.efi"; } else { - filename "netboot.xyz.kpxe"; + filename "netboot.xyz-undionly.kpxe"; } } <% end -%> @@ -92,6 +91,12 @@ host draco.oob.openstreetmap.org { fixed-address draco.oob.openstreetmap.org; } +host dribble.oob.openstreetmap.org { + hardware ethernet 80:30:e0:3e:e0:a0; + server-name "dribble.oob.openstreetmap.org"; + fixed-address dribble.oob.openstreetmap.org; +} + host dulcy.oob.openstreetmap.org { hardware ethernet 0c:c4:7a:66:ce:95; server-name "dulcy.oob.openstreetmap.org"; @@ -104,12 +109,6 @@ host eddie.oob.openstreetmap.org { fixed-address eddie.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"; @@ -176,6 +175,12 @@ host longma.oob.openstreetmap.org { fixed-address longma.oob.openstreetmap.org; } +host muirdris.oob.openstreetmap.org { + hardware ethernet 80:30:e0:3e:f0:2a; + server-name "muirdris.oob.openstreetmap.org"; + fixed-address muirdris.oob.openstreetmap.org; +} + host naga.oob.openstreetmap.org { hardware ethernet 94:57:a5:5f:11:f2; server-name "naga.oob.openstreetmap.org"; @@ -237,7 +242,7 @@ host snap-03.oob.openstreetmap.org { } host smaug.oob.openstreetmap.org { - hardware ethernet 00:30:48:9d:57:ff; + hardware ethernet 80:30:e0:3e:d0:62; server-name "smaug.oob.openstreetmap.org"; fixed-address smaug.oob.openstreetmap.org; } @@ -356,6 +361,12 @@ host thorn-03.oob.openstreetmap.org { fixed-address thorn-03.oob.openstreetmap.org; } +host vhagar.oob.openstreetmap.org { + hardware ethernet 80:30:e0:3e:11:a0; + server-name "vhagar.oob.openstreetmap.org"; + fixed-address vhagar.oob.openstreetmap.org; +} + host ysera.oob.openstreetmap.org { hardware ethernet ac:1f:6b:c1:40:2a; server-name "ysera.oob.openstreetmap.org";