aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems/utils/laptop.pp
blob: 5ae29d66269c2159e969c7dda08961a5053e83cc (plain)
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
# 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' ]:
    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,
      },
    }
  }
}