summaryrefslogtreecommitdiff
path: root/inventory/host_vars
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2024-05-28 23:24:15 +0200
committerChristian Pointner <equinox@spreadspace.org>2024-05-28 23:24:15 +0200
commit7d92af47eda7be65b307a285e7ef4a25d53158d9 (patch)
tree78f2e78a934fcac32d715058fa2b3ff892772d60 /inventory/host_vars
parentmove ch-cm4-sensors* to iot vlan (diff)
ch-cm4-sensor: make install in iot possible
Diffstat (limited to 'inventory/host_vars')
-rw-r--r--inventory/host_vars/ch-cm4-sensors0.yml12
-rw-r--r--inventory/host_vars/ch-cm4-sensors1.yml12
2 files changed, 24 insertions, 0 deletions
diff --git a/inventory/host_vars/ch-cm4-sensors0.yml b/inventory/host_vars/ch-cm4-sensors0.yml
index dd4c649c..185cadbe 100644
--- a/inventory/host_vars/ch-cm4-sensors0.yml
+++ b/inventory/host_vars/ch-cm4-sensors0.yml
@@ -8,6 +8,10 @@ network:
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'
@@ -26,3 +30,11 @@ raspios_boot_config:
line: 'dtoverlay=gpio-shutdown,gpio_pin=4'
base_entropy_generator: rngd
+
+
+ntp_variant: systemd-timesyncd
+
+ntp_client:
+ servers:
+ - name: "{{ network_zones.iot.prefix | ansible.utils.ipaddr(network_zones.iot.offsets['ch-iot']) | ansible.utils.ipaddr('address') }}"
+ options: iburst
diff --git a/inventory/host_vars/ch-cm4-sensors1.yml b/inventory/host_vars/ch-cm4-sensors1.yml
index dd4c649c..185cadbe 100644
--- a/inventory/host_vars/ch-cm4-sensors1.yml
+++ b/inventory/host_vars/ch-cm4-sensors1.yml
@@ -8,6 +8,10 @@ network:
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'
@@ -26,3 +30,11 @@ raspios_boot_config:
line: 'dtoverlay=gpio-shutdown,gpio_pin=4'
base_entropy_generator: rngd
+
+
+ntp_variant: systemd-timesyncd
+
+ntp_client:
+ servers:
+ - name: "{{ network_zones.iot.prefix | ansible.utils.ipaddr(network_zones.iot.offsets['ch-iot']) | ansible.utils.ipaddr('address') }}"
+ options: iburst