Created
October 15, 2017 14:54
-
-
Save tcoupin/c8a735b6eab83fa41a104d919dc49e88 to your computer and use it in GitHub Desktop.
Setup wifi with cloud-init on Rpi3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
write_files: | |
- content: | | |
allow-hotplug wlan0 | |
iface wlan0 inet dhcp | |
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf | |
iface default inet dhcp | |
path: /etc/network/interfaces.d/wlan0 | |
- content: | | |
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |
update_config=1 | |
network={ | |
ssid="MY_SSID" | |
psk="MY_PASSWORD" | |
proto=RSN | |
key_mgmt=WPA-PSK | |
pairwise=CCMP | |
auth_alg=OPEN | |
} | |
path: /etc/wpa_supplicant/wpa_supplicant.conf | |
power_state: | |
delay: now | |
mode: reboot | |
condition: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why is it so$&#*$ !!? Because: