Last active
December 17, 2015 04:32
-
-
Save rothsa/b03c9021eeede37f0872 to your computer and use it in GitHub Desktop.
/etc/network/interfaces
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
file { ‘/etc/network/interfaces’: | |
content => “auto lo | |
iface lo inet loopback | |
iface eth0 inet dhcp | |
allow-hotplug wlan0 | |
iface wlan0 inet dhcp | |
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf | |
iface default inet dhcp”, | |
} | |
file { “/etc/wpa_supplicant/wpa_supplicant.conf”: | |
content => “ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |
update_config=1 | |
network={ | |
ssid=\”iPhone\” | |
psk=\”default\” | |
proto=RSN | |
key_mgmt=WPA-PSK | |
pairwise=CCMP | |
auth_alg=OPEN | |
}”, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment