summaryrefslogtreecommitdiff
path: root/puppet/manifests/site.pp
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2012-09-20 13:39:23 +0200
committervarac <varacanero@zeromail.org>2012-09-20 13:39:23 +0200
commit764ae6f21a8a54af78b29fc14876af36e2dd4651 (patch)
treef3f83427a014e650c43063506566e4d56f6ff941 /puppet/manifests/site.pp
parent5c7ce0a1c90ab1c0844369882f7fcdb6ff05c16d (diff)
parse new config layout
Diffstat (limited to 'puppet/manifests/site.pp')
-rw-r--r--puppet/manifests/site.pp26
1 files changed, 19 insertions, 7 deletions
diff --git a/puppet/manifests/site.pp b/puppet/manifests/site.pp
index 1bfc730e..bb29e393 100644
--- a/puppet/manifests/site.pp
+++ b/puppet/manifests/site.pp
@@ -1,10 +1,22 @@
+define print() {
+ notice("The value is: '${name}'")
+}
+
+
node 'default' {
- $service='eip'
- $password=hiera('testpw')
- $openvpn_ports=hiera_array('openvpn_ports')
- $tor=hiera('tor')
- notify {"Password: $password":}
- notify {"Openvpn Config for $fqdn: openvpn_ports=$openvpn_ports, tor=$tor":}
- #include site_openvpn
+ #$password=hiera('testpw')
+ #notify {"Password: $password":}
+
+ $services=hiera_array('services')
+ notice("Services for $fqdn: $services")
+
+ if 'eip' in $services {
+ $openvpn_ports=hiera_array('openvpn_ports')
+ $tor=hiera('tor')
+ notice("Openvpn Config for $fqdn: openvpn_ports=$openvpn_ports, tor=$tor")
+ print{$openvpn_ports:}
+ #include site_openvpn
+ }
+
}