blob: f8726fa99e58e8c2c1cdf9f8100279936912bcd1 (
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
42
43
44
45
46
|
# set a default exec path
Exec { path => '/usr/bin:/usr/sbin/:/bin:/sbin:/usr/local/bin:/usr/local/sbin' }
# parse services for host
$services=join(hiera_array('services', ['']), ' ')
notice("Services for ${fqdn}: ${services}")
include site_config::setup
include site_config::default
# configure eip
if $services =~ /\bopenvpn\b/ {
include site_openvpn
}
if $services =~ /\bcouchdb\b/ {
include site_couchdb
include tapicero
}
if $services =~ /\bwebapp\b/ {
include site_webapp
include site_nickserver
}
if $services =~ /\bsoledad\b/ {
include soledad::server
}
if $services =~ /\bmonitor\b/ {
include site_nagios
}
if $services =~ /\btor\b/ {
include site_tor
}
if $services =~ /\bmx\b/ {
include site_mx
}
if $services =~ /\bstatic\b/ {
include site_static
}
include site_config::packages::uninstall
|