diff options
author | elijah <elijah@riseup.net> | 2013-03-29 14:39:26 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-03-29 14:39:26 -0700 |
commit | b7ba05040f9f1266d14947f1612fa54060dd37cb (patch) | |
tree | baab6b8a0e88cc06c1e772857675acc535262dcd | |
parent | ffda76a47c7f9d5766325d8cdf13d289430456eb (diff) |
fixed site_openvpn bug with redefined variable.
-rw-r--r-- | puppet/modules/site_openvpn/manifests/init.pp | 3 |
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'] |