From f54e173040f7135017e9c64963429572db8ee22c Mon Sep 17 00:00:00 2001 From: Thomas Basler Date: Mon, 13 Sep 2021 20:33:23 +0200 Subject: [PATCH] Added DNS and DHCP config for habdisplay[1-2] --- roles/dhcpd/templates/dhcp/dhcpd.conf.j2 | 10 ++++++++++ .../templates/bind/23.172.in-addr.arpa.zone.j2 | 2 ++ roles/dns_intern/templates/bind/binary.kitchen.zone.j2 | 2 ++ 3 files changed, 14 insertions(+) diff --git a/roles/dhcpd/templates/dhcp/dhcpd.conf.j2 b/roles/dhcpd/templates/dhcp/dhcpd.conf.j2 index 4dde447..4d64f12 100644 --- a/roles/dhcpd/templates/dhcp/dhcpd.conf.j2 +++ b/roles/dhcpd/templates/dhcp/dhcpd.conf.j2 @@ -168,6 +168,16 @@ host garlic { fixed-address garlic.binary.kitchen; } +host habdisplay1 { + hardware ethernet b8:27:eb:b6:62:be; + fixed-address habdisplay1.mqtt.binary.kitchen; +} + +host habdisplay2 { + hardware ethernet b8:27:eb:df:0b:7b; + fixed-address habdisplay2.mqtt.binary.kitchen; +} + host klopi { hardware ethernet 74:da:38:6e:e6:9d; fixed-address klopi.binary.kitchen; diff --git a/roles/dns_intern/templates/bind/23.172.in-addr.arpa.zone.j2 b/roles/dns_intern/templates/bind/23.172.in-addr.arpa.zone.j2 index fda72f6..4d8353b 100644 --- a/roles/dns_intern/templates/bind/23.172.in-addr.arpa.zone.j2 +++ b/roles/dns_intern/templates/bind/23.172.in-addr.arpa.zone.j2 @@ -66,6 +66,8 @@ $GENERATE 10-230 $.3 IN PTR dhcp-${0,3,d}-03.binary.kitchen. 1.4 IN PTR v2304.core.binary.kitchen. 6.4 IN PTR pizza.mqtt.binary.kitchen. $GENERATE 10-240 $.4 IN PTR dhcp-${0,3,d}-04.binary.kitchen. +241.4 IN PTR habdisplay1.mqtt.binary.kitchen. +242.4 IN PTR habdisplay2.mqtt.binary.kitchen. ; Management RZ 1.9 IN PTR switch0.erx-rz.binary.kitchen. 61.9 IN PTR salat.binary.kitchen. diff --git a/roles/dns_intern/templates/bind/binary.kitchen.zone.j2 b/roles/dns_intern/templates/bind/binary.kitchen.zone.j2 index 11b92ba..dab721b 100644 --- a/roles/dns_intern/templates/bind/binary.kitchen.zone.j2 +++ b/roles/dns_intern/templates/bind/binary.kitchen.zone.j2 @@ -89,6 +89,8 @@ noodlehub IN A 172.23.3.251 v2304.core IN A 172.23.4.1 pizza.mqtt IN A 172.23.4.6 $GENERATE 10-240 dhcp-${0,3,d}-04 IN A 172.23.4.$ +habdisplay1.mqtt IN A 172.23.4.241 +habdisplay2.mqtt IN A 172.23.4.242 ; Management RZ switch0.erx-rz IN A 172.23.9.1 salat IN A 172.23.9.61