aboutsummaryrefslogtreecommitdiff
path: root/manifests/host.pp
blob: 88e900542b68ae9ca513ecf7d6fd740c91c7b808 (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
45
# 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
  class { 'syslog-ng': }

  monkeysphere_host { "${::hostname}": }

  # 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
  $ntpdate = hiera('nodo::host::ntpdate', True)
  case $ntpdate {
    false:   { class { 'timezone': } }
    default: { class { 'ntpdate':  } }
  }

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

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

}