Skip to content

Instantly share code, notes, and snippets.

@rothsa
Last active December 17, 2015 04:32
Show Gist options
  • Save rothsa/b03c9021eeede37f0872 to your computer and use it in GitHub Desktop.
Save rothsa/b03c9021eeede37f0872 to your computer and use it in GitHub Desktop.
/etc/network/interfaces
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