From bb4c08b12e97043f6246be98c8e536b300d02c89 Mon Sep 17 00:00:00 2001 From: mh Date: Sat, 3 Jan 2015 20:59:19 +0100 Subject: [PATCH] correct function --- manifests/instance.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/instance.pp b/manifests/instance.pp index 8575259..cfc9fb9 100644 --- a/manifests/instance.pp +++ b/manifests/instance.pp @@ -99,7 +99,7 @@ define tinc::instance( if $tinc_address { $host_address = $tinc_address } else { - $int_name_escaped = gsub($tinc_interface,'.','_') + $int_name_escaped = regsubst($tinc_interface,'.','_','G') $host_address = getvar("::ipaddress_${int_name_escaped}") }