Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

support WPA for wireless without need of NetworkManager

  • Loading branch information...
commit 9aaa058a79673dd8b352382fee5db893152ae0fd 1 parent 2e303ff
@telent authored
View
12 files/etc/network/interfaces
@@ -5,4 +5,14 @@
auto lo
iface lo inet loopback
-iface wlan0 manual
+iface wlan0 inet manual
+ wpa-driver wext
+ wpa-roam /etc/wpa_supplicant.conf
+
+# these interface names correspond with the 'id_str' settings in
+# wpa_supplicant.conf, so I can tell it about a network that I don't
+# want it to connect to automatically because it's horribly insecure
+# or has an annoying captive portal or whatever other reason
+
+iface default inet dhcp
+iface ignore inet manual
View
21 files/etc/wpa_supplicant.conf
@@ -0,0 +1,21 @@
+ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
+network={
+ ssid="My SSID"
+ priority=20
+ #psk="not a passphrase"
+ psk=8649204ac9cecc467b6c7cb35806627736c3e28f8303d73f2e9afb0a1dff871c
+ id_str "default"
+}
+network={
+ ssid="My other SSID"
+ priority=20
+ #psk="not a passphrase"
+ psk=33e4836e7a1325ee4abe6e7ba0f4f9f2f0927aac6d476b001a2469b67e5f2ad7
+ id_str "default"
+}
+network={
+ ssid="Some annoying captive portal"
+ priority=0
+ id_str "ignore"
+}
+
View
8 manifests/site.pp
@@ -29,7 +29,13 @@
file {'/etc/network/interfaces':
- source=>'puppet:///files/etc/network/interfaces'
+ source=>'puppet:///files/etc/network/interfaces',
+ owner=>root,
+}
+file {'/etc/wpa_supplicant.conf':
+ source=>'puppet:///files/etc/wpa_supplicant.conf',
+ owner=>root,
+ replace=>false
}
package {'curl':}
Please sign in to comment.
Something went wrong with that request. Please try again.