aboutsummaryrefslogtreecommitdiff
path: root/manifests/base/host.pp
blob: e44b1cfed225290a3621701710a4da26159fdcf2 (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
# 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,
    dolvm  => $::is_virtual,
    #dombr  => $::is_virtual,
    #dobios => $::is_virtual,
  }
}