summaryrefslogtreecommitdiff
path: root/inventory/host_vars/ch-cm4-sensors1.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2024-05-17 02:33:12 +0200
committerChristian Pointner <equinox@spreadspace.org>2024-05-17 02:33:12 +0200
commitb33323178af73c0e50b39cbbd5128bc5fbcbad35 (patch)
tree8194f22074bab5aa6cbc13285991dc7b23e300df /inventory/host_vars/ch-cm4-sensors1.yml
parentbase install for gstreamer decklink tests (diff)
add cm4 based sensor nodes (base install)
Diffstat (limited to 'inventory/host_vars/ch-cm4-sensors1.yml')
-rw-r--r--inventory/host_vars/ch-cm4-sensors1.yml36
1 files changed, 36 insertions, 0 deletions
diff --git a/inventory/host_vars/ch-cm4-sensors1.yml b/inventory/host_vars/ch-cm4-sensors1.yml
new file mode 100644
index 00000000..f59eceb6
--- /dev/null
+++ b/inventory/host_vars/ch-cm4-sensors1.yml
@@ -0,0 +1,36 @@
+---
+raspios_variant: lite
+raspios_arch: arm64
+
+network:
+ nameservers: "{{ network_zones.svc.dns }}"
+ domain: "{{ host_domain }}"
+ primary: &_network_primary_
+ name: eth0
+ address: "{{ network_zones.svc.prefix | ansible.utils.ipaddr(network_zones.svc.offsets[inventory_hostname]) }}"
+ gateway: "{{ network_zones.svc.gateway }}"
+ static_routes:
+ - destination: "{{ network_zones.lan.prefix }}"
+ gateway: "{{ network_zones.svc.prefix | ansible.utils.ipaddr(network_zones.svc.offsets['ch-gw-lan']) | ansible.utils.ipaddr('address') }}"
+ interfaces:
+ - *_network_primary_
+
+raspios_boot_config:
+ - regexp: '^#?otg_mode=1'
+ line: '#otg_mode=1'
+ - regexp: '^#?dtparam=i2c_vc'
+ line: 'dtparam=i2c_vc=on'
+ - regexp: '^#?dtoverlay=i2c-rtc'
+ line: 'dtoverlay=i2c-rtc,pcf85063a,i2c_csi_dsi'
+ - regexp: '^#?dtoverlay=disable-bt'
+ line: 'dtoverlay=disable-bt'
+ - regexp: '^#?dtoverlay=disable-wifi'
+ line: 'dtoverlay=disable-wifi'
+ - regexp: '^#?dtoverlay=dwc2'
+ line: 'dtoverlay=dwc2,dr_mode=host'
+ - regexp: '^#?dtoverlay=audremap'
+ line: 'dtoverlay=audremap,pins_18_19'
+ - regexp: '^#?dtoverlay=gpio-shutdown'
+ line: 'dtoverlay=gpio-shutdown,gpio_pin=4'
+
+base_entropy_generator: rngd