blob: adbaebc78f3a2440a7ec2db6dc9c3abbb563e0d4 (
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
|
#
# Nodo module.
#
class nodo(
$role = 'default',
$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 }
# Include base class
include nodo::base
# Include role class
if defined("nodo::role::${role}") {
class { "nodo::role::${role}": }
}
# Include additional classes
$classes = hiera('classes', false)
if $classes != false {
hiera_include('classes')
}
# Declare resources
class { "nodo::resources": }
}
|