aboutsummaryrefslogtreecommitdiff
path: root/manifests/base/host.pp
blob: 96c2e63f4bb5ecec289a810d36e663c22f43c7ac (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
# 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

  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 ? {
      true  => false,
      false => true,
    },
    dolvm  => $::is_virtual ? {
      true  => false,
      false => true,
    },
    #dombr  => $::is_virtual,
    #dobios => $::is_virtual,
  }
}