aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-02-18 18:38:29 -0200
committerSilvio Rhatto <rhatto@riseup.net>2011-02-18 18:38:29 -0200
commit9c2acf962b0ac9d7eff9347e530cb330b62cc7d1 (patch)
treed9d26738964d3bd86357610d297e1b0bcc337b71 /manifests/subsystems
parentfc13d7e58069341a7f85da0861b721f748c0332f (diff)
downloadpuppet-nodo-9c2acf962b0ac9d7eff9347e530cb330b62cc7d1.tar.gz
puppet-nodo-9c2acf962b0ac9d7eff9347e530cb330b62cc7d1.tar.bz2
Wireless default device depends on distro version
Diffstat (limited to 'manifests/subsystems')
-rw-r--r--manifests/subsystems/firewall.pp9
1 files changed, 8 insertions, 1 deletions
diff --git a/manifests/subsystems/firewall.pp b/manifests/subsystems/firewall.pp
index b2f4383..e05a2a6 100644
--- a/manifests/subsystems/firewall.pp
+++ b/manifests/subsystems/firewall.pp
@@ -245,8 +245,15 @@ class firewall::wifi {
default => false,
}
+ # Default device depends if madwifi or
+ # built-in kernel driver is being used
+ $wifi_default_device = $lsbdistcodename ? {
+ 'lenny' => 'ath0',
+ default => 'wlan0',
+ }
+
$wifi_dev = $wifi_device ? {
- '' => 'ath0',
+ '' => $wifi_default_device,
default => $wifi_device,
}