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
67
68
|
# Common utilities
class nodo::utils inherits nodo::utils::base {
# Ensure every node are ready for offline operation
package { [
'apt-offline',
]:
ensure => present,
}
package { [
'pv',
'gcp',
'vim-nox',
'needrestart',
'clog',
'nethogs',
#debian-goodies,
# Lets bring the power of JSON into UNIX
# See https://blog.fluxo.info/suckless/cli
'jo',
'jq',
]:
ensure => present,
}
# Python
package { [
'python3',
'python-is-python3',
]:
ensure => present,
}
# Not available in some old systems
package { [
'reboot-notifier',
]:
ensure => $::lsbdistcodename ? {
'trusty' => absent,
default => present,
},
}
include nodo::utils::http
if !defined(Package['git']) {
package { 'git':
ensure => latest,
}
}
# Editor alternative
file { "/etc/alternatives/editor":
ensure => "/usr/bin/vi",
owner => root,
group => root,
}
# Not in use for various reasons
#
# #767071 - rdnssd drops non-nameserver settings from /etc/resolv.conf when overwriting it
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=767071
# #740998 - NetworkManager and rdnssd do not play well together
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=740998
package { [ 'rdnssd', 'dnsmasq', 'dnsmasq-base' ]:
ensure => absent,
}
}
|