aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems/utils/laptop.pp
blob: dad2e03a8dd2dac7af9393b954b6151573b81a91 (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
29
30
# 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' ]:
    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,
      },
    }
  }
}