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
|
# Common utilities
class nodo::utils {
package { [ 'screen', 'less', 'bzip2', 'openssl', 'lynx', 'unzip',
'nmap', 'telnet', 'tree', 'whois', 'dosfstools', 'dnsutils', 'secure-delete',
'bc', 'lsof', 'wipe', 'vrms', 'nsca-client', 'uuid-runtime', 'vim-nox',
'multitail', 'bash-completion', 'zsh' ]:
ensure => installed,
}
# Might be defined elsewhere
if !defined(Package['wget']) {
package { 'wget':
ensure => installed,
}
}
# Not using right now
package { [ 'logcheck', 'logcheck-database' ]:
ensure => absent,
}
# We'll probably use https://github.com/puppetlabs/puppetlabs-denyhosts in the future
package { 'denyhosts':
ensure => purged,
}
# Maybe we use logwatch in the future
#package { 'logwatch':
# ensure => installed,
#}
# Obsolete
if !defined(Package['git-core']) {
package { 'git-core':
ensure => absent,
}
}
if !defined(Package['git']) {
package { 'git':
ensure => latest,
}
}
# 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'];
}
}
|