aboutsummaryrefslogtreecommitdiff
path: root/manifests/base/host.pp
blob: 80eb936b34752b04a2554bfb068f1e539381b90f (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
# Fully capable node able to host other nodes
class nodo::base::host {
  include nodo::subsystem::initramfs
  include nodo::subsystem::modprobe
  include nodo::subsystem::firewire
  include nodo::subsystem::sysctl
  include nodo::subsystem::resolver
  include nodo::utils::physical
  include nodo::utils::storage::crypto
  class { 'syslog-ng': }

  nodo::subsystem::monkeysphere { "${::hostname}": }

  # Firewall
  class { 'firewall': }

  # Time
  $ntpdate = hiera('nodo::host::ntpdate', True)
  case $ntpdate {
    false:   { class { 'ntp::timezone': } }
    default: { class { 'ntp::ntpdate':  } }
  }

  # Backup
  backupninja::sys { "sys":
    ensure => present,
    doluks => $::is_virtual,
    dolvm  => $::is_virtual,
    #dombr  => $::is_virtual,
    #dobios => $::is_virtual,
  }
}