From f42cfb84537bd570eb039de134fafd215e51f69b Mon Sep 17 00:00:00 2001 From: mh Date: Thu, 25 Feb 2016 15:27:28 +0100 Subject: [PATCH] make it possible to export a different port e.g. for nodes behind NAT --- manifests/instance.pp | 3 ++- manifests/switch.pp | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/manifests/instance.pp b/manifests/instance.pp index d4fce3a..ea60c2a 100644 --- a/manifests/instance.pp +++ b/manifests/instance.pp @@ -5,6 +5,7 @@ define tinc::instance( $tinc_interface = 'eth0', $tinc_address = undef, $port = '655', + $port_to_export = '655', $compression = '10', $mode = 'switch', $tinc_up_content = undef, @@ -114,7 +115,7 @@ define tinc::instance( } # export this host and collect all the other hosts @@tinc::host{"${fqdn_tinc}@${name}": - port => $port, + port => $port_to_export, compression => $compression, address => $host_address, public_key => $tinc_keys[1], diff --git a/manifests/switch.pp b/manifests/switch.pp index ffe73e8..65b8c42 100644 --- a/manifests/switch.pp +++ b/manifests/switch.pp @@ -5,6 +5,7 @@ define tinc::switch( $tinc_interface = 'eth0', $tinc_address = undef, $port = '655', + $port_to_export = '655', $tinc_internal_interface = 'eth1', $tinc_internal_ip = 'absent', $tinc_internal_netmask = 'absent', @@ -19,6 +20,7 @@ define tinc::switch( tinc_interface => $tinc_interface, tinc_address => $tinc_address, port => $port, + port_to_export => $port_to_export, compression => $compression, mode => 'switch', }