diff options
Diffstat (limited to 'inventory')
-rw-r--r-- | inventory/group_vars/chaos-at-home/network.yml | 2 | ||||
-rw-r--r-- | inventory/host_vars/ch-cm4-sensors0.yml | 5 | ||||
-rw-r--r-- | inventory/host_vars/ch-cm4-sensors1.yml | 5 | ||||
-rw-r--r-- | inventory/host_vars/ch-iot.yml | 10 |
4 files changed, 14 insertions, 8 deletions
diff --git a/inventory/group_vars/chaos-at-home/network.yml b/inventory/group_vars/chaos-at-home/network.yml index f8956a47..9b53d52a 100644 --- a/inventory/group_vars/chaos-at-home/network.yml +++ b/inventory/group_vars/chaos-at-home/network.yml @@ -59,6 +59,8 @@ network_zones: iot: vlan: 30 prefix: 192.168.30.0/24 + dns: + - 192.168.30.254 wifi: ssid: "stuff at home" #encryption: "sae-mixed" diff --git a/inventory/host_vars/ch-cm4-sensors0.yml b/inventory/host_vars/ch-cm4-sensors0.yml index 4b65b1f0..7f7982f1 100644 --- a/inventory/host_vars/ch-cm4-sensors0.yml +++ b/inventory/host_vars/ch-cm4-sensors0.yml @@ -3,15 +3,12 @@ raspios_variant: lite raspios_arch: arm64 network: + nameservers: "{{ network_zones.iot.dns }}" primary: &_network_primary_ name: eth0 address: "{{ network_zones.iot.prefix | ansible.utils.ipaddr(network_zones.iot.offsets[inventory_hostname]) }}" interfaces: - *_network_primary_ - static_hostnames: - - address: "{{ network_zones.iot.prefix | ansible.utils.ipaddr(network_zones.iot.offsets['ch-iot']) | ansible.utils.ipaddr('address') }}" - names: - - apt.chaos-at-home.org raspios_boot_config: - regexp: '^#?dtparam=i2c_arm' diff --git a/inventory/host_vars/ch-cm4-sensors1.yml b/inventory/host_vars/ch-cm4-sensors1.yml index 4b65b1f0..7f7982f1 100644 --- a/inventory/host_vars/ch-cm4-sensors1.yml +++ b/inventory/host_vars/ch-cm4-sensors1.yml @@ -3,15 +3,12 @@ raspios_variant: lite raspios_arch: arm64 network: + nameservers: "{{ network_zones.iot.dns }}" primary: &_network_primary_ name: eth0 address: "{{ network_zones.iot.prefix | ansible.utils.ipaddr(network_zones.iot.offsets[inventory_hostname]) }}" interfaces: - *_network_primary_ - static_hostnames: - - address: "{{ network_zones.iot.prefix | ansible.utils.ipaddr(network_zones.iot.offsets['ch-iot']) | ansible.utils.ipaddr('address') }}" - names: - - apt.chaos-at-home.org raspios_boot_config: - regexp: '^#?dtparam=i2c_arm' diff --git a/inventory/host_vars/ch-iot.yml b/inventory/host_vars/ch-iot.yml index 3772e9a6..0aca3e57 100644 --- a/inventory/host_vars/ch-iot.yml +++ b/inventory/host_vars/ch-iot.yml @@ -49,7 +49,17 @@ ntp_server: - "{{ network_zones.iot.prefix }}" +coredns_config: | + . { + hosts { + {{ network_zones.iot.prefix | ansible.utils.ipaddr(network_zones.iot.offsets['ch-iot']) | ansible.utils.ipaddr('address') }} apt.chaos-at-home.org + no_reverse + } + } + + spreadspace_apt_repo_components: + - main - prometheus |