From 5bf3a1c741bc9f3aea1fad71153819595add031e Mon Sep 17 00:00:00 2001 From: Jimmy Jones Date: Tue, 10 Sep 2024 06:32:02 -0700 Subject: [PATCH] :bug: Fix wifi cloud-config example (#2820) --- examples/cloud-configs/wifi.yaml | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/examples/cloud-configs/wifi.yaml b/examples/cloud-configs/wifi.yaml index 770ddeb8e..9181679cd 100644 --- a/examples/cloud-configs/wifi.yaml +++ b/examples/cloud-configs/wifi.yaml @@ -11,18 +11,20 @@ users: stages: initramfs: - - path: /etc/wpa_supplicant/wpa_supplicant-wlan0.conf - content: | - # This file should be generated using wpa_passphrase - ctrl_interface=/var/run/wpa_supplicant - ctrl_interface_group=admin - network={ - ssid="$SSID_GOES_HERE" - psk=$PSK_GOES_HERE - } - permissions: 0600 - owner: 0 - group: 0 + - name: "Setup wireless" + files: + - path: /etc/wpa_supplicant/wpa_supplicant-wlan0.conf + content: | + # This file should be generated using wpa_passphrase + ctrl_interface=/var/run/wpa_supplicant + ctrl_interface_group=admin + network={ + ssid="$SSID_GOES_HERE" + psk="$PSK_GOES_HERE" + } + permissions: 0600 + owner: 0 + group: 0 boot: - name: "Enabling wireless" @@ -31,4 +33,4 @@ stages: systemctl enable wpa_supplicant@wlan0 systemctl disable wpa_supplicant systemctl stop wpa_supplicant || : - systemctl start wpa_supplicant@wlan0 || : \ No newline at end of file + systemctl start wpa_supplicant@wlan0 || :