aboutsummaryrefslogtreecommitdiff
path: root/manifests/utils.pp
blob: d033b092ee17346a35b91804f6eca23f6d7088eb (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
# Common utilities
class nodo::utils inherits nodo::utils::base {
  package { 'vim-nox':
    ensure => present,
  }

  package { 'needrestart':
    ensure  => present,
  }

  # Might be defined elsewhere
  if !defined(Package['wget']) {
    package { 'wget':
      ensure => installed,
    }
  }

  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,
  }
}