From 261c053c936dcad1106e133005809ba2b3e116b1 Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Tue, 12 Sep 2017 19:41:36 +0200 Subject: [PATCH] IP, DNS and DHCP for spaghetti (octopi). --- roles/dhcpd/templates/dhcp/dhcpd.conf.j2 | 5 +++++ roles/dns/templates/bind/23.172.in-addr.arpa.zone.j2 | 4 +++- roles/dns/templates/bind/binary.kitchen.zone.j2 | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/roles/dhcpd/templates/dhcp/dhcpd.conf.j2 b/roles/dhcpd/templates/dhcp/dhcpd.conf.j2 index d559a46..36c2cb7 100644 --- a/roles/dhcpd/templates/dhcp/dhcpd.conf.j2 +++ b/roles/dhcpd/templates/dhcp/dhcpd.conf.j2 @@ -119,6 +119,11 @@ host punsch { fixed-address punsch.binary.kitchen; } +host spaghetti { + hardware ethernet b8:27:eb:63:7b:31; + fixed-address spaghetti.binary.kitchen; +} + host spiegelei { hardware ethernet 00:23:7d:79:82:8e; fixed-address spiegelei.binary.kitchen; diff --git a/roles/dns/templates/bind/23.172.in-addr.arpa.zone.j2 b/roles/dns/templates/bind/23.172.in-addr.arpa.zone.j2 index 0a81bb2..84e5478 100644 --- a/roles/dns/templates/bind/23.172.in-addr.arpa.zone.j2 +++ b/roles/dns/templates/bind/23.172.in-addr.arpa.zone.j2 @@ -1,7 +1,7 @@ $ORIGIN 23.172.in-addr.arpa. ; base for unqualified names $TTL 1h ; default time-to-live @ IN SOA ns.binary.kitchen. hostmaster.binary.kitchen. ( - 2017083101; serial + 2017091201; serial 1d; refresh 2h; retry 4w; expire @@ -44,9 +44,11 @@ $TTL 1h ; default time-to-live 1.3 IN PTR v2303.core.binary.kitchen. $GENERATE 10-240 $.3 IN PTR dhcp-${0,3,d}-03.binary.kitchen. 241.3 IN PTR klopi.binary.kitchen. +242.3 IN PTR spaghetti.binary.kitchen. ; MQTT 1.4 IN PTR v2304.core.binary.kitchen. 5.4 IN PTR sushi.mqtt.binary.kitchen. +6.4 IN PTR pizza.mqtt.binary.kitchen. $GENERATE 10-240 $.4 IN PTR dhcp-${0,3,d}-04.binary.kitchen. ; Management RZ 23.8 IN PTR cernunnos.binary.kitchen. diff --git a/roles/dns/templates/bind/binary.kitchen.zone.j2 b/roles/dns/templates/bind/binary.kitchen.zone.j2 index 18be7cf..dbc0e21 100644 --- a/roles/dns/templates/bind/binary.kitchen.zone.j2 +++ b/roles/dns/templates/bind/binary.kitchen.zone.j2 @@ -1,7 +1,7 @@ $ORIGIN binary.kitchen ; base for unqualified names $TTL 1h ; default time-to-live @ IN SOA ns.binary.kitchen. hostmaster.binary.kitchen. ( - 2017083101; serial + 2017091201; serial 1d; refresh 2h; retry 4w; expire @@ -58,6 +58,7 @@ spiegelei IN A 172.23.2.91 v2303.core IN A 172.23.3.1 $GENERATE 1-240 dhcp-${0,3,d}-03 IN A 172.23.3.$ klopi IN A 172.23.3.241 +spaghetti IN A 172.23.3.242 ; MQTT v2304.core IN A 172.23.4.1 sushi.mqtt IN A 172.23.4.5