From 7d92af47eda7be65b307a285e7ef4a25d53158d9 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 28 May 2024 23:24:15 +0200 Subject: ch-cm4-sensor: make install in iot possible --- inventory/host_vars/ch-cm4-sensors0.yml | 12 ++++++++++++ inventory/host_vars/ch-cm4-sensors1.yml | 12 ++++++++++++ 2 files changed, 24 insertions(+) (limited to 'inventory/host_vars') 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 -- cgit v1.2.3