summaryrefslogtreecommitdiff
path: root/puppet
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-03-29 14:39:26 -0700
committerelijah <elijah@riseup.net>2013-03-29 14:39:26 -0700
commitb7ba05040f9f1266d14947f1612fa54060dd37cb (patch)
treebaab6b8a0e88cc06c1e772857675acc535262dcd /puppet
parentffda76a47c7f9d5766325d8cdf13d289430456eb (diff)
fixed site_openvpn bug with redefined variable.
Diffstat (limited to 'puppet')
-rw-r--r--puppet/modules/site_openvpn/manifests/init.pp3
1 files changed, 2 insertions, 1 deletions
diff --git a/puppet/modules/site_openvpn/manifests/init.pp b/puppet/modules/site_openvpn/manifests/init.pp
index c54bb782..1ae3fb02 100644
--- a/puppet/modules/site_openvpn/manifests/init.pp
+++ b/puppet/modules/site_openvpn/manifests/init.pp
@@ -25,9 +25,10 @@ class site_openvpn {
$interface = getvar("interface_${ip_address}")
$openvpn_ports = $openvpn_config['ports']
$openvpn_gateway_address = $openvpn_config['gateway_address']
- $openvpn_second_gateway_address = undef
if $openvpn_config['second_gateway_address'] {
$openvpn_second_gateway_address = $openvpn_config['second_gateway_address']
+ } else {
+ $openvpn_second_gateway_address = undef
}
$openvpn_allow_unlimited = $openvpn_config['allow_unlimited']