This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

support WPA for wireless without need of NetworkManager

  • Loading branch information...
telent committed Jun 29, 2013
1 parent 2e303ff commit 9aaa058a79673dd8b352382fee5db893152ae0fd
Showing with 39 additions and 2 deletions.
  1. +11 −1 files/etc/network/interfaces
  2. +21 −0 files/etc/wpa_supplicant.conf
  3. +7 −1 manifests/site.pp
@@ -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
@@ -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"
}

@@ -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':}

0 comments on commit 9aaa058

Please sign in to comment.