1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Common utilities for laptop
class utils::laptop {
case $::operatingsystem {
debian: {
include utils::laptop::debian
}
default: { }
}
}
# Common utilities for debian laptops
class utils::laptop::debian {
package { [ 'cpufrequtils', 'module-assistant', 'wireless-tools',
'wpasupplicant', 'ekiga', 'gnome',
'revelation', 'arp-scan', 'usb-modeswitch',
'iw', 'wvdial', 'wavemon',
'btscanner', 'laptop-mode-tools', 'acpi-support',
'tftp', 'sharutils', 'wireshark',
'macchanger', 'weplab', 'wpagui',
'gnokii', 'mumble' ]:
ensure => installed,
}
# Wheezy specific packages
package { 'network-manager':
ensure => $::lsbdistcodename ? {
'squeeze' => absent,
default => installed,
}
}
# Squeeze specific packages
package { [ 'kismet', 'wicd', 'wicd-curses' ]:
ensure => $::lsbdistcodename ? {
'squeeze' => installed,
default => absent,
}
}
# Lenny specific packages
package { [ 'madwifi-source', 'madwifi-tools', 'bluez-gnome' ]:
ensure => $::lsbdistcodename ? {
'lenny' => installed,
default => absent,
}
}
# Hibernation on lenny
if $::lsbdistcodename == 'lenny' {
$hibernate = hiera('nodo::laptop::hibernate', false)
package { 'uswsusp':
ensure => $hibernate ? {
false => absent,
default => present,
},
}
}
}
|