2017-01-21 17:55:08 +01:00
|
|
|
# dhcpd.conf
|
|
|
|
|
|
|
|
# option definitions common to all supported networks...
|
|
|
|
option domain-name "binary.kitchen";
|
|
|
|
option domain-name-servers {{ name_servers | join(', ') }};
|
2021-05-16 18:35:29 +02:00
|
|
|
option domain-search "binary.kitchen";
|
2018-10-15 21:46:30 +02:00
|
|
|
option ntp-servers 172.23.1.60, 172.23.2.3;
|
2017-01-21 17:55:08 +01:00
|
|
|
|
2018-08-21 12:59:41 +02:00
|
|
|
default-lease-time 7200;
|
|
|
|
max-lease-time 28800;
|
2017-01-21 17:55:08 +01:00
|
|
|
|
|
|
|
# Use this to enble / disable dynamic dns updates globally.
|
2021-05-16 18:35:29 +02:00
|
|
|
ddns-update-style interim;
|
|
|
|
ddns-updates on;
|
2017-01-21 17:55:08 +01:00
|
|
|
|
|
|
|
# If this DHCP server is the official DHCP server for the local
|
|
|
|
# network, the authoritative directive should be uncommented.
|
|
|
|
authoritative;
|
|
|
|
|
|
|
|
# Use this to send dhcp log messages to a different log file (you also
|
|
|
|
# have to hack syslog.conf to complete the redirection).
|
|
|
|
log-facility local7;
|
|
|
|
|
|
|
|
{% if dhcpd_failover == true %}
|
|
|
|
|
|
|
|
# Failover
|
|
|
|
|
|
|
|
failover peer "failover-partner" {
|
|
|
|
{% if ansible_default_ipv4.address == dhcpd_primary %}
|
|
|
|
primary;
|
|
|
|
address {{ dhcpd_primary }};
|
|
|
|
peer address {{ dhcpd_secondary }};
|
|
|
|
{% elif ansible_default_ipv4.address == dhcpd_secondary %}
|
|
|
|
secondary;
|
|
|
|
address {{ dhcpd_secondary }};
|
|
|
|
peer address {{ dhcpd_primary }};
|
|
|
|
{% endif %}
|
|
|
|
port 520;
|
|
|
|
peer port 520;
|
|
|
|
max-response-delay 60;
|
|
|
|
max-unacked-updates 10;
|
|
|
|
{% if ansible_default_ipv4.address == dhcpd_primary %}
|
|
|
|
mclt 600;
|
|
|
|
split 255;
|
|
|
|
{% endif %}
|
|
|
|
load balance max seconds 3;
|
|
|
|
}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
# Binary Kitchen subnets
|
|
|
|
|
|
|
|
# Management
|
2018-10-26 18:43:18 +02:00
|
|
|
subnet 172.23.1.0 netmask 255.255.255.0 {
|
|
|
|
option routers 172.23.1.1;
|
|
|
|
}
|
2017-01-21 17:55:08 +01:00
|
|
|
|
|
|
|
# Services
|
|
|
|
subnet 172.23.2.0 netmask 255.255.255.0 {
|
2018-04-22 12:07:42 +02:00
|
|
|
allow bootp;
|
2017-02-17 21:16:09 +01:00
|
|
|
option routers 172.23.2.1;
|
2017-01-21 17:55:08 +01:00
|
|
|
}
|
|
|
|
|
2017-02-21 18:47:11 +01:00
|
|
|
# Users
|
2017-01-21 17:55:08 +01:00
|
|
|
subnet 172.23.3.0 netmask 255.255.255.0 {
|
2017-01-23 19:26:35 +01:00
|
|
|
option routers 172.23.3.1;
|
2021-05-16 18:35:29 +02:00
|
|
|
ddns-domainname "users.binary.kitchen";
|
|
|
|
option domain-search "binary.kitchen", "users.binary.kitchen";
|
2017-01-21 17:55:08 +01:00
|
|
|
pool {
|
|
|
|
{% if dhcpd_failover == true %}
|
|
|
|
failover peer "failover-partner";
|
|
|
|
{% endif %}
|
2019-03-09 18:33:00 +01:00
|
|
|
range 172.23.3.10 172.23.3.230;
|
2017-01-21 17:55:08 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-02-21 18:47:11 +01:00
|
|
|
# MQTT
|
2017-01-21 17:55:08 +01:00
|
|
|
subnet 172.23.4.0 netmask 255.255.255.0 {
|
2017-01-23 19:26:35 +01:00
|
|
|
option routers 172.23.4.1;
|
2017-01-21 17:55:08 +01:00
|
|
|
pool {
|
|
|
|
{% if dhcpd_failover == true %}
|
|
|
|
failover peer "failover-partner";
|
|
|
|
{% endif %}
|
2017-01-23 15:27:07 +01:00
|
|
|
range 172.23.4.10 172.23.4.240;
|
2017-01-21 17:55:08 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-30 23:31:04 +02:00
|
|
|
# Management Auweg
|
|
|
|
subnet 172.23.12.0 netmask 255.255.255.0 {
|
|
|
|
option routers 172.23.12.1;
|
|
|
|
}
|
|
|
|
|
|
|
|
# Services Auweg
|
|
|
|
subnet 172.23.13.0 netmask 255.255.255.0 {
|
|
|
|
allow bootp;
|
|
|
|
option routers 172.23.13.1;
|
|
|
|
}
|
|
|
|
|
|
|
|
# Users Auweg
|
|
|
|
subnet 172.23.14.0 netmask 255.255.255.0 {
|
|
|
|
option routers 172.23.3.1;
|
|
|
|
ddns-domainname "users.binary.kitchen";
|
|
|
|
option domain-search "binary.kitchen", "users.binary.kitchen";
|
|
|
|
pool {
|
|
|
|
{% if dhcpd_failover == true %}
|
|
|
|
failover peer "failover-partner";
|
|
|
|
{% endif %}
|
|
|
|
range 172.23.14.10 172.23.14.230;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# MQTT Auweg
|
|
|
|
subnet 172.23.15.0 netmask 255.255.255.0 {
|
|
|
|
option routers 172.23.4.1;
|
|
|
|
pool {
|
|
|
|
{% if dhcpd_failover == true %}
|
|
|
|
failover peer "failover-partner";
|
|
|
|
{% endif %}
|
|
|
|
range 172.23.15.10 172.23.15.240;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-16 18:35:29 +02:00
|
|
|
# DDNS zones
|
|
|
|
|
|
|
|
zone users.binary.kitchen {
|
|
|
|
primary {{ dns_primary }};
|
|
|
|
}
|
|
|
|
|
2017-01-21 17:55:08 +01:00
|
|
|
|
|
|
|
# Fixed IPs
|
2018-02-03 22:40:48 +01:00
|
|
|
|
2018-10-26 18:43:18 +02:00
|
|
|
host ap01 {
|
|
|
|
hardware ethernet 44:48:c1:ce:a9:00;
|
|
|
|
fixed-address ap01.binary.kitchen;
|
|
|
|
}
|
|
|
|
|
|
|
|
host ap04 {
|
|
|
|
hardware ethernet 44:48:c1:ce:90:06;
|
|
|
|
fixed-address ap04.binary.kitchen;
|
|
|
|
}
|
|
|
|
|
2019-11-30 22:12:25 +01:00
|
|
|
host ap05 {
|
2020-01-27 20:35:45 +01:00
|
|
|
hardware ethernet bc:9f:e4:c3:6f:aa;
|
2019-11-30 22:12:25 +01:00
|
|
|
fixed-address ap05.binary.kitchen;
|
|
|
|
}
|
|
|
|
|
2021-06-17 16:47:23 +02:00
|
|
|
host ap06 {
|
|
|
|
hardware ethernet 94:b4:0f:c0:1d:a0;
|
|
|
|
fixed-address ap06.binary.kitchen;
|
|
|
|
}
|
|
|
|
|
2018-02-03 22:40:48 +01:00
|
|
|
host bowle {
|
|
|
|
hardware ethernet ac:1f:6b:25:16:b6;
|
|
|
|
fixed-address bowle.binary.kitchen;
|
|
|
|
}
|
|
|
|
|
2017-03-20 20:02:03 +01:00
|
|
|
host cannelloni {
|
|
|
|
hardware ethernet 00:10:f3:15:88:ac;
|
|
|
|
fixed-address cannelloni.binary.kitchen;
|
|
|
|
}
|
|
|
|
|
2019-10-31 19:43:26 +01:00
|
|
|
host fusilli {
|
|
|
|
hardware ethernet b8:27:eb:1d:b9:bf;
|
|
|
|
fixed-address fusilli.binary.kitchen;
|
|
|
|
}
|
|
|
|
|
2018-05-01 11:48:55 +02:00
|
|
|
host garlic {
|
|
|
|
hardware ethernet b8:27:eb:56:2b:7c;
|
|
|
|
fixed-address garlic.binary.kitchen;
|
|
|
|
}
|
|
|
|
|
2021-09-13 20:33:23 +02:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2017-03-21 20:42:58 +01:00
|
|
|
host klopi {
|
|
|
|
hardware ethernet 74:da:38:6e:e6:9d;
|
|
|
|
fixed-address klopi.binary.kitchen;
|
|
|
|
}
|
|
|
|
|
2017-01-21 17:55:08 +01:00
|
|
|
host lock {
|
2018-10-06 20:37:41 +02:00
|
|
|
hardware ethernet b8:27:eb:d8:b9:ad;
|
2017-01-21 17:55:08 +01:00
|
|
|
fixed-address lock.binary.kitchen;
|
|
|
|
}
|
|
|
|
|
2019-01-20 14:47:55 +01:00
|
|
|
host maccaroni {
|
|
|
|
hardware ethernet b8:27:eb:18:5c:11;
|
|
|
|
fixed-address maccaroni.binary.kitchen;
|
|
|
|
}
|
|
|
|
|
2017-01-21 17:55:08 +01:00
|
|
|
host matrix {
|
|
|
|
hardware ethernet b8:27:eb:ed:22:58;
|
|
|
|
fixed-address matrix.binary.kitchen;
|
|
|
|
}
|
|
|
|
|
2018-07-08 16:38:16 +02:00
|
|
|
host mirror {
|
|
|
|
hardware ethernet 74:da:38:7d:ed:84;
|
|
|
|
fixed-address mirror.binary.kitchen;
|
|
|
|
}
|
|
|
|
|
2019-03-09 18:33:00 +01:00
|
|
|
host mpcnc {
|
|
|
|
hardware ethernet b8:27:eb:0f:d3:8b;
|
|
|
|
fixed-address mpcnc.binary.kitchen;
|
|
|
|
}
|
|
|
|
|
2019-09-30 18:44:44 +02:00
|
|
|
host noodlehub {
|
|
|
|
hardware ethernet b8:27:eb:eb:e5:88;
|
|
|
|
fixed-address noodlehub.binary.kitchen;
|
|
|
|
}
|
|
|
|
|
2017-09-03 14:26:05 +02:00
|
|
|
host pizza {
|
|
|
|
hardware ethernet 52:54:00:17:02:21;
|
|
|
|
fixed-address pizza.binary.kitchen;
|
2017-01-28 16:44:36 +01:00
|
|
|
}
|
|
|
|
|
2017-09-12 19:41:36 +02:00
|
|
|
host spaghetti {
|
2019-01-20 14:47:55 +01:00
|
|
|
hardware ethernet b8:27:eb:e3:e9:f1;
|
2017-09-12 19:41:36 +02:00
|
|
|
fixed-address spaghetti.binary.kitchen;
|
|
|
|
}
|
|
|
|
|
2017-09-30 16:44:19 +02:00
|
|
|
host schweinshaxn {
|
|
|
|
hardware ethernet 52:54:00:17:02:24;
|
|
|
|
fixed-address schweinshaxn.binary.kitchen;
|
|
|
|
}
|
|
|
|
|
2019-06-27 10:09:39 +02:00
|
|
|
host strammermax {
|
|
|
|
hardware ethernet 08:00:37:B8:55:44;
|
|
|
|
fixed-address strammermax.binary.kitchen;
|
2017-01-21 17:55:08 +01:00
|
|
|
}
|
|
|
|
|
2018-04-22 12:07:42 +02:00
|
|
|
host obatzda {
|
|
|
|
hardware ethernet ec:9a:74:35:35:cf;
|
|
|
|
fixed-address obatzda.binary.kitchen;
|
|
|
|
}
|
|
|
|
|
2017-01-21 17:55:08 +01:00
|
|
|
|
2017-10-02 12:13:04 +02:00
|
|
|
# VoIP Phones
|
|
|
|
|
|
|
|
host voip01 {
|
|
|
|
hardware ethernet 00:1D:45:B6:99:2F;
|
|
|
|
option tftp-server-name "172.23.2.36";
|
|
|
|
}
|
|
|
|
|
|
|
|
host voip02 {
|
|
|
|
hardware ethernet 00:1D:A2:66:B8:3E;
|
|
|
|
option tftp-server-name "172.23.2.36";
|
|
|
|
}
|
|
|
|
|
|
|
|
host voip03 {
|
|
|
|
hardware ethernet 00:1E:BE:90:FB:DB;
|
|
|
|
option tftp-server-name "172.23.2.36";
|
|
|
|
}
|
|
|
|
|
|
|
|
host voip04 {
|
|
|
|
hardware ethernet 00:1E:BE:90:FF:06;
|
|
|
|
option tftp-server-name "172.23.2.36";
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2017-01-21 17:55:08 +01:00
|
|
|
# OMAPI
|
|
|
|
|
|
|
|
omapi-port 7911;
|
|
|
|
omapi-key omapi_key;
|
|
|
|
|
|
|
|
key omapi_key {
|
|
|
|
algorithm hmac-md5;
|
2020-02-03 18:38:01 +01:00
|
|
|
secret {{ dhcp_omapi_key }};
|
2017-01-21 17:55:08 +01:00
|
|
|
}
|