aboutsummaryrefslogtreecommitdiff
path: root/manifests/utils/base.pp
blob: 9d5b6d67232d31a66efc11cf17d018a2a31cf665 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
class nodo::utils::base (
  $ensure = 'installed',
) {
  package { [
    'screen',
    'tmux',
    'less',
    'bzip2',
    'openssl',
    'lynx',
    'unzip',
    'nmap',
    'telnet',
    'tree',
    'whois',
    'dosfstools',
    'dnsutils',
    'secure-delete',
    'bc',
    'lsof',
    'wipe',
    'vrms',
    'uuid-runtime',
    'multitail',
    'bash-completion',
    'zsh',
    'rename',
    #pv,
    #gcp,
  ]:
    ensure => $ensure,
  }

  # Not available in some old systems
  package { [
    'ncat',
  ]:
    ensure  => $::lsbdistcodename ? {
      'trusty' => absent,
      'xenial' => absent,
      'bionic' => absent,
      default  => present,
    },
  }

  # Not available in some old systems
  package { [
    'powerline',
  ]:
    ensure  => $::lsbdistcodename ? {
      'trusty' => absent,
      default  => present,
    },
  }

  # Not using right now
  package { [
    'logcheck',
    'logcheck-database',
    'denyhosts',
    'logwatch',
    'nsca-client',
  ]:
    ensure => absent,
  }
}