summaryrefslogtreecommitdiff
path: root/puppet
diff options
context:
space:
mode:
Diffstat (limited to 'puppet')
-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
+ }
+
}