From a457c0932b697fd32febe79c473c7e06dccd355a Mon Sep 17 00:00:00 2001 From: Luke Hoersten Date: Sat, 1 Aug 2026 09:53:44 -0500 Subject: rpi-base: role-owned netplan replaces wpa_supplicant; auto-upgrades gain -updates and 04:00 reboot Networking: one 40-net.yaml (eth0 always, wifi via rpi_base_wifi_*) with cloud-init's 50-cloud-init.yaml deleted after first boot. cloud-init still renders it on an instance_id bump, and it sorts later, so editing the card's network-config and bumping meta-data is the headless rescue path. ssh_deletekeys off so a rescue bump keeps the host keys. Auto-updates: periodic switches and local policy merged into one 52unattended-upgrades-local; 50unattended-upgrades stays a distro conffile and debconf's 20auto-upgrades can no longer disable anything. --- rpi-base/templates/40-net.yaml.j2 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 rpi-base/templates/40-net.yaml.j2 (limited to 'rpi-base/templates/40-net.yaml.j2') diff --git a/rpi-base/templates/40-net.yaml.j2 b/rpi-base/templates/40-net.yaml.j2 new file mode 100644 index 0000000..f473a2b --- /dev/null +++ b/rpi-base/templates/40-net.yaml.j2 @@ -0,0 +1,18 @@ +# {{ansible_managed}} + +network: + version: 2 + ethernets: + eth0: + dhcp4: true + optional: true +{% if rpi_base_enable_wifi %} + wifis: + wlan0: + regulatory-domain: "US" + dhcp4: true + optional: true + access-points: + "{{rpi_base_wifi_ssid}}": + password: "{{rpi_base_wifi_password}}" +{% endif %} -- cgit v1.2.3