aboutsummaryrefslogtreecommitdiff
path: root/manifests/base/host.pp
blob: 5c3bba5e4d5180b6ede4ffc97b3ecf8ee41fbaa7 (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
# 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::subsystem::fstrim
  include nodo::utils::physical
  include nodo::utils::storage::crypto

  # Monkeysphere is currently unavailable
  #nodo::subsystem::monkeysphere { "${::hostname}": }

  # Firewall
  class { 'firewall': }

  # Time
  $ntpdate = lookup('nodo::host::ntpdate', undef, undef, 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,
  }
}