Skip to content

Commit

Permalink
🐛 Fix wifi cloud-config example (#2820)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyjones2 authored Sep 10, 2024
1 parent 8fa18a9 commit 5bf3a1c
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions examples/cloud-configs/wifi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -31,4 +33,4 @@ stages:
systemctl enable wpa_supplicant@wlan0
systemctl disable wpa_supplicant
systemctl stop wpa_supplicant || :
systemctl start wpa_supplicant@wlan0 || :
systemctl start wpa_supplicant@wlan0 || :

0 comments on commit 5bf3a1c

Please sign in to comment.