From 65b22cccccc2bf55014f84ddde1c67b6c08b065d Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 29 May 2010 14:15:30 -0300 Subject: Adding sshport parameter --- manifests/tunnel.pp | 1 + templates/autossh-tunnel.erb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/manifests/tunnel.pp b/manifests/tunnel.pp index b4e7bdf..b10ae5a 100644 --- a/manifests/tunnel.pp +++ b/manifests/tunnel.pp @@ -5,6 +5,7 @@ define autossh::tunnel ( $port, $host = 'localhost', $hostport, + $sshport = '22', $remote_host, $remote_user = 'absent', $monitor_port = 'absent', diff --git a/templates/autossh-tunnel.erb b/templates/autossh-tunnel.erb index e89bc2a..0a552d8 100644 --- a/templates/autossh-tunnel.erb +++ b/templates/autossh-tunnel.erb @@ -26,7 +26,7 @@ SCRIPTNAME=/etc/init.d/$NAME # # AutoSSH configuration # -AUTOSSH_ARGS="-M <%= real_monitor_port %> -N -L <%= bind_address %>:<%= port %>:<%= host %>:<%= hostport %> <%= ssh_extra_options %> <%= real_remote_user %>@<%= remote_host %>" +AUTOSSH_ARGS="-M <%= real_monitor_port %> -N -L <%= bind_address %>:<%= port %>:<%= host %>:<%= hostport %> <%= ssh_extra_options %> -p <%= ssh_port %> <%= real_remote_user %>@<%= remote_host %>" <% if gatetime != 'absent' -%> AUTOSSH_GATETIME=<%= gatetime %> <% end -%> -- cgit v1.2.3