summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbertagaz <bertagaz@ptitcanardnoir.org>2016-02-29 14:28:29 +0100
committerbertagaz <bertagaz@ptitcanardnoir.org>2016-02-29 14:28:29 +0100
commitb446652667e4b9038427dd56051abcb51d080d9b (patch)
tree8b62dddad9f86d20d10c524c699b2f8addc2af48
parentaa2ac32d1c1632f8f0a3cf535d7a901367b3a0e0 (diff)
Don't reassign variables in puppet.feature/11094-tails-vpn
Refs: #11094
-rw-r--r--manifests/vpn/instance.pp5
1 files changed, 3 insertions, 2 deletions
diff --git a/manifests/vpn/instance.pp b/manifests/vpn/instance.pp
index 1985f3f..0ef9149 100644
--- a/manifests/vpn/instance.pp
+++ b/manifests/vpn/instance.pp
@@ -27,9 +27,10 @@ define tails::vpn::instance (
$vpn_netmask = $vpn_spsubnet[1]
if $ip_address == undef {
- $ip_address = $::ipaddress
+ $external_ip_address = $::ipaddress
} else {
validate_ipv4_address($ip_address)
+ $external_ip_address = $ip_address
}
validate_re($name, '.+@.+')
@@ -111,7 +112,7 @@ define tails::vpn::instance (
@@::tails::vpn::host { $hostname:
ensure => $ensure,
- ip_address => $ip_address,
+ ip_address => $external_ip_address,
vpn_address => $vpn_address,
vpn_name => $vpn_name,
tag => $vpn_name,