aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
blob: b147f44023bbe0516eb0f03bfa437bed0a24cc66 (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
#
# Nodo module.
#

class nodo(
  $role     = hiera('nodo::role',     'default'),
  $location = hiera('nodo::location', 'default'),
) {
  # Default execution path
  Exec { path => "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" }

  # Fileserver backup
  filebucket { server: server => hiera('puppet::daemon::server', "puppet.${::domain}") }
  File { backup => server }

  # Modules that still doesn't support autoloading
  import "common"
  import 'dhcp'

  # Include base class
  include nodo::base

  # Include role class
  if defined("nodo::role::${role}") {
    class { "nodo::role::${role}": }
  }
}