aboutsummaryrefslogtreecommitdiff
path: root/manifests/host.pp
blob: 626da5ac05f05f9b23cb4d0615954518ca7fd0c9 (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
# Fully capable node able to host other nodes
class nodo::host inherits nodo {
  include initramfs
  include modprobe
  include firewire
  include sysctl
  include utils::physical
  include resolver
  include monkeysphere_nodo

  class { 'syslog-ng': }

  # Firewall configuration
  class { 'firewall': }

  # Vserver configuration
  class { 'vserver::host':
    $vdirbase => "/var/vservers",
  }

  # Monitoring
  if !defined('monitor') {
    class { 'monitor':
      type       => 'host',
      use_nagios => hiera('nodo::host::use_nagios', True),
    }
  }

  # Time configuration
  case $ntpdate {
    false:   { include timezone }
    default: { include ntpdate  }
  }

  backupninja::sys { "sys":
    ensure => present,
  }

  # Munin configuration
  munin_node { "$hostname":
    port => '4900',
  }

}