aboutsummaryrefslogtreecommitdiff
path: root/manifests/utils/laptop/debian.pp
blob: 948a34ccdfc59523247ae176663f4b2caad6579c (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
31
32
33
34
35
36
37
38
39
40
41
# Common utilities for debian laptops
class nodo::utils::laptop::debian {
  include nodo::utils::storage::layer

  package { [ 'cpufrequtils',  'module-assistant',  'wireless-tools',
              'wpasupplicant', 'ekiga',             'mumble',
              'arp-scan',      'usb-modeswitch',
              'iw',            'wvdial',            'wavemon',
              'btscanner',     'laptop-mode-tools', 'acpi-support',
              'tftp',          'sharutils',         'wireshark',
              'macchanger',    'weplab',            'wpagui',
              'gnokii',        'sslstrip',          'uswsusp',
              'tcpdump',       'tshark' ]:
    ensure => installed,
  }

  $wicd            = hiera('nodo::utils::laptop::debian::wicd',            'installed')
  $network_manager = hiera('nodo::utils::laptop::debian::network_manager', 'absent')

  # Wicd
  package { [ 'wicd', 'wicd-curses', 'wicd-gtk' ]:
    ensure => $wicd,
  }

  # Network manager
  package { 'network-manager':
    ensure => $::lsbdistcodename ? {
      'squeeze' => absent,
       default  => $network_manager,
    }
  }

  # Squeeze specific packages
  package { [ 'kismet' ]:
    ensure => $::lsbdistcodename ? {
      'squeeze' => installed,
       default  => absent,
    }
  }

}