summaryrefslogtreecommitdiff
path: root/inventory/host_vars
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2024-06-04 23:42:17 +0200
committerChristian Pointner <equinox@spreadspace.org>2024-06-04 23:42:17 +0200
commit06bfc41a5ce11b42040a4234c938582f1fab320e (patch)
tree2ec5fe23e23540a9decbebc7adbde7699396a9c4 /inventory/host_vars
parentmake base url for some repos configurable (diff)
install coredns to ch-iot
Diffstat (limited to 'inventory/host_vars')
-rw-r--r--inventory/host_vars/ch-cm4-sensors0.yml5
-rw-r--r--inventory/host_vars/ch-cm4-sensors1.yml5
-rw-r--r--inventory/host_vars/ch-iot.yml10
3 files changed, 12 insertions, 8 deletions
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