From af2d1fe2d65c895a3465580770f5d4c0f4ec6995 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 21 Jun 2022 17:03:06 +0100 Subject: [PATCH] Add DHCP and reverse DNS for OOB servers --- cookbooks/bind/templates/default/db.10.erb | 3 ++- cookbooks/dhcpd/templates/default/dhcpd.conf.erb | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/cookbooks/bind/templates/default/db.10.erb b/cookbooks/bind/templates/default/db.10.erb index 77d7a374f..55c99e6f6 100644 --- a/cookbooks/bind/templates/default/db.10.erb +++ b/cookbooks/bind/templates/default/db.10.erb @@ -98,6 +98,7 @@ $TTL 604800 53.48.0 IN PTR thorn-03.ams.openstreetmap.org. 100.48.0 IN PTR pdu1.ams.openstreetmap.org. 101.48.0 IN PTR pdu2.ams.openstreetmap.org. +102.48.0 IN PTR oob1.ams.openstreetmap.org. 9.49.0 IN PTR dulcy.oob.openstreetmap.org. 10.49.0 IN PTR ironbelly.oob.openstreetmap.org. @@ -123,7 +124,7 @@ $TTL 604800 50.64.0 IN PTR snap-03.dub.openstreetmap.org. 100.64.0 IN PTR pdu1.dub.openstreetmap.org. 101.64.0 IN PTR pdu2.dub.openstreetmap.org. -102.64.0 IN PTR oob.dub.openstreetmap.org. +102.64.0 IN PTR oob1.dub.openstreetmap.org. 2.65.0 IN PTR fafnir.oob.openstreetmap.org. 3.65.0 IN PTR spike-01.oob.openstreetmap.org. diff --git a/cookbooks/dhcpd/templates/default/dhcpd.conf.erb b/cookbooks/dhcpd/templates/default/dhcpd.conf.erb index 34a923617..69fdb05c5 100644 --- a/cookbooks/dhcpd/templates/default/dhcpd.conf.erb +++ b/cookbooks/dhcpd/templates/default/dhcpd.conf.erb @@ -28,6 +28,12 @@ subnet <%= interface[:network] %> netmask <%= interface[:netmask] %> { } <% end -%> +host oob1.ams.openstreetmap.org { + hardware ethernet dc:a6:32:49:56:da; + 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"; @@ -40,6 +46,12 @@ host pdu2.ams.openstreetmap.org { fixed-address pdu2.ams.openstreetmap.org; } +host oob1.dub.openstreetmap.org { + hardware ethernet f6:43:70:77:29:60; + 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"; -- 2.39.5