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
|
# Common utilities for laptop
class utils::laptop {
package { [ 'cpufrequtils', 'module-assistant', 'wireless-tools',
'wpasupplicant', 'ekiga', 'gnome',
'revelation', 'wicd', 'wicd-curses',
'iw', 'wvdial', 'wavemon',
'btscanner', 'laptop-mode-tools', 'acpi-support',
'kismet', 'sharutils', 'wireshark',
'macchanger', 'weplab', 'wpagui',
'gnokii' ]:
ensure => installed,
}
# Lenny specific packages
package { [ 'madwifi-source', 'madwifi-tools', 'bluez-gnome' ]:
ensure => $lsbdistcodename ? {
'lenny' => installed,
default => absent,
}
}
# Hibernation on lenny
if $lsbdistcodename == 'lenny' {
package { 'uswsusp':
ensure => $hibernate ? {
false => absent,
default => present,
},
}
}
}
|