src.nth.io/

summaryrefslogtreecommitdiff
path: root/rpi-base/templates/40-net.yaml.j2
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2026-08-01 09:53:44 -0500
committerLuke Hoersten <[email protected]>2026-08-01 09:53:44 -0500
commita457c0932b697fd32febe79c473c7e06dccd355a (patch)
treeb5ee3640d2d0f6e2d4a19ccef1ecdee3a243bde9 /rpi-base/templates/40-net.yaml.j2
parent553be3539fcc475ca91ffed17208b730eef7c331 (diff)
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.
Diffstat (limited to 'rpi-base/templates/40-net.yaml.j2')
-rw-r--r--rpi-base/templates/40-net.yaml.j218
1 files changed, 18 insertions, 0 deletions
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 %}