diff options
Diffstat (limited to 'inventory/host_vars')
-rw-r--r-- | inventory/host_vars/ch-cm4-sensors0.yml | 12 | ||||
-rw-r--r-- | inventory/host_vars/ch-cm4-sensors1.yml | 12 |
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 |