blob: 1a76e3bd490cd2cb60fa47740f667733f8779d02 (
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
40
41
|
# set a default exec path
Exec { path => '/usr/bin:/usr/sbin/:/bin:/sbin:/usr/local/bin:/usr/local/sbin' }
node 'default' {
# prerequisites
import 'common'
include concat::setup
$development = hiera('development')
if $development['site_config'] == true {
# include some basic classes
include site_config
} else {
notice ('NOT applying site_config')
}
# parse services for host
$services=hiera_array('services')
notice("Services for $fqdn: $services")
# configure eip
if 'openvpn' in $services {
include site_openvpn
}
if 'couchdb' in $services {
include site_couchdb
}
if 'webapp' in $services {
include site_webapp
}
if 'ca' in $services {
include site_ca_daemon
}
if 'monitor' in $services {
include site_nagios::server
}
}
|