diff options
author | varac <varacanero@zeromail.org> | 2012-09-21 12:45:36 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2012-09-21 12:45:36 +0200 |
commit | 75e57c74d5aa0595e02435ca4de15b9df1cc6002 (patch) | |
tree | cc86d4802cef07a6db48e19c471848c816288401 /puppet/manifests | |
parent | 1a0d1907b303c2ab1e8da2a26e061e8a7327241e (diff) |
parsing of hiera config hash works
Diffstat (limited to 'puppet/manifests')
-rw-r--r-- | puppet/manifests/site.pp | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/puppet/manifests/site.pp b/puppet/manifests/site.pp index bb29e393..abb81511 100644 --- a/puppet/manifests/site.pp +++ b/puppet/manifests/site.pp @@ -1,7 +1,15 @@ define print() { - notice("The value is: '${name}'") + 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') @@ -11,12 +19,9 @@ node 'default' { notice("Services for $fqdn: $services") if 'eip' in $services { - $openvpn_ports=hiera_array('openvpn_ports') + $openvpn=hiera('openvpn') $tor=hiera('tor') - notice("Openvpn Config for $fqdn: openvpn_ports=$openvpn_ports, tor=$tor") - print{$openvpn_ports:} - #include site_openvpn + notice("Tor enabled: $tor") + create_resources('create_openvpn_config', $openvpn) } - - } |