aboutsummaryrefslogtreecommitdiff
path: root/manifests/host.pp
blob: 9464e967abc21ef005bdcd1433d5dbdb5dd0aa9a (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
# 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
  include firewall

  # Vserver configuration
  $vserver_vdirbase = "/var/vservers"
  include vserver::host

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

}