From 3387c2fdcbe74be6767c5abce5beb9e7df2d3f5b Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Sun, 19 Nov 2017 03:15:26 +0100 Subject: space_server: generate DNS, mDNS and dhcp entries ..from the same variables --- roles/space_server/defaults/main.yml | 71 ++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) (limited to 'roles/space_server/defaults') diff --git a/roles/space_server/defaults/main.yml b/roles/space_server/defaults/main.yml index eb582df..6d6f12d 100644 --- a/roles/space_server/defaults/main.yml +++ b/roles/space_server/defaults/main.yml @@ -14,6 +14,7 @@ packages: - python2-dnf - 'dnf-command(leaves)' - ansible + - python-netaddr - vim-enhanced - git - diffutils @@ -28,5 +29,75 @@ boot: root: device: 'LABEL=BTRFS' options: 'noatime,ssd,compress=lzo' +local_hosts: + - name: ap + mac: 00:0f:23:94:43:0b + mdns: false + ips: + - 10.42.0.2 + - name: doorputer + mac: 00:b3:f6:00:36:be + mdns: false + ips: + - 10.42.0.3 + - name: foodputer + mac: 00:d0:59:37:5e:37 + mdns: false + ips: + - 10.42.0.4 + - name: ap1 + mdns: false + ips: + - 10.42.0.5 + - name: ap2 + mdns: false + ips: + - 10.42.0.6 + - 10.42.0.7 + - name: switch + mac: 00:1b:11:6f:42:f8 + mdns: false + ips: + - 10.42.0.9 + - name: lathe + mdns: false + ips: + - 10.42.0.12 + - name: anna + mac: 00:e0:c5:6e:d6:8d + ips: + - 10.42.1.9 + - name: printbrother + mac: 00:80:77:06:9f:26 + ips: + - 10.42.1.32 + - name: infotron + description: Infoscreen Raspberry Pi + mac: b8:27:eb:2c:5d:3a + ips: + - 10.42.1.34 + - name: spacemon + mac: b8:27:eb:24:f8:50 + ips: + - 10.42.1.35 + - name: jumbotron + description: Jumbotron Raspberry Pi + mac: b8:27:eb:d3:c1:62 + mdns: false + ips: + - 10.42.1.36 + - name: hplaserjet + mac: 94:57:a5:ce:e2:6c + mdns: false + ips: + - 10.42.1.37 + - 2a01:4260:1ab:b:9657:a5ff:fece:e26c + - name: labisound + mac: 00:16:e6:f7:43:b0 + ips: + - 10.42.1.40 + - name: sound + ips: + - 10.42.1.80 # vim: set ts=2 sw=2 et: -- cgit v1.2.1