summaryrefslogtreecommitdiff
path: root/puppet/manifests/site.pp
diff options
context:
space:
mode:
Diffstat (limited to 'puppet/manifests/site.pp')
-rw-r--r--puppet/manifests/site.pp18
1 files changed, 5 insertions, 13 deletions
diff --git a/puppet/manifests/site.pp b/puppet/manifests/site.pp
index abb81511..98e683af 100644
--- a/puppet/manifests/site.pp
+++ b/puppet/manifests/site.pp
@@ -2,26 +2,18 @@ define print() {
notice("The value is: '${name}'")
}
-define create_openvpn_config($port, $protocol) {
- $openvpn_configname=$name
- notice("Creating OpenVPN $openvpn_configname:
- Port: $port, Protocol: $protocol")
- # ...
- #include site_openvpn
-
-}
-
node 'default' {
- #$password=hiera('testpw')
- #notify {"Password: $password":}
+ $concat_basedir = '/var/lib/puppet/modules/concat'
+ include concat::setup
$services=hiera_array('services')
notice("Services for $fqdn: $services")
if 'eip' in $services {
- $openvpn=hiera('openvpn')
$tor=hiera('tor')
notice("Tor enabled: $tor")
- create_resources('create_openvpn_config', $openvpn)
+
+ $openvpn_config=hiera('openvpn')
+ create_resources('site_openvpn::server_config', $openvpn_config)
}
}