Hi,
openvpn.yaml:
[...]
profiles:
vpn:
openvpn:
defaults:
client:
dev: 'tun'
proto: 'udp'
resolv-retry: 'infinite'
nobind:
user: 'nobody'
group: 'nogroup'
persist-key:
persist-tun:
init.pp:
[...]
$openvpnConf = $profiles['vpn']['openvpn']['defaults']['client']
[...]
In the template:
### <%= @openvpnConf['dev'] %> ###
### <%= @openvpnConf['nobind'] %> ###
The result is
### tun ###
### undef ###
but I would expect
### tun ###
### ###
The problem is that testing for defined?, .nil? and also != 'undef' all
fail.
How can I test if a key has a value withn the template?
Thank you!
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/xn0lcerxlvsqnut003%40news.gmane.org.
For more options, visit https://groups.google.com/d/optout.