aboutsummaryrefslogtreecommitdiff
path: root/manifests/base/physical.pp
blob: e01bfb2f1505a4ee05202e076d4edacb78cb9822 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class nodo::base::physical inherits nodo::base::host {
  class { [ 'nodo::subsystem::ups', 'smartmontools' ]: }

  # SMART monitoring
  $munin = hiera('nodo::host::use_munin', True)
  if $munin == true {
    include munin::plugins::smart
    munin::plugin { 'smart_sda':
      ensure => 'smart_',
      config => "user root\ngroup disk",
    }
  }

  # Entropy key
  $ekey_masterkey = hiera('nodo::physical::ekey_masterkey', '')
  if $ekey_masterkey != '' {
    class { "ekeyd":
      ekeyd_masterkey => $ekey_masterkey,
    }
  }
}