aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems/utils.pp
blob: 09487bd20f122d62869ffb4d6c89f361b4592fbc (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
# Common utilities
class utils {
  package { [ 'screen', 'less',   'bzip2', 'openssl', 'lynx',        'wget',     'unzip',
              'nmap',   'telnet', 'tree',  'whois',   'dosfstools',  'dnsutils', 'logcheck-database',
              'bc',     'lsof',   'wipe',  'vrms',    'nsca-client', 'logcheck', 'vim-nox' ]:
    ensure => installed,
  }

  if !defined(Package['git-core']) {
    package { 'git-core':
      ensure => installed,
    }
  }

  # Editor alternative
  file { "/etc/alternatives/editor":
    ensure  => "/usr/bin/vi",
    owner   => root,
    group   => root,
  }

  # Ensure we have the minimum augeas version required by shorewall module
  package {
    'libaugeas0':
      ensure => $::lsbdistcodename ? {
        'squeeze' => '0.10.0-1~bpo60+3',
        default   => installed,
      };
    'augeas-tools':
      ensure => $::lsbdistcodename ? {
        'squeeze' => '0.10.0-1~bpo60+3',
        default   => installed,
      },
     require => Package['libaugeas0'];
  }
}