aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/tunnel.pp6
1 files changed, 6 insertions, 0 deletions
diff --git a/manifests/tunnel.pp b/manifests/tunnel.pp
index a90a38a..b4e7bdf 100644
--- a/manifests/tunnel.pp
+++ b/manifests/tunnel.pp
@@ -6,6 +6,7 @@ define autossh::tunnel (
$host = 'localhost',
$hostport,
$remote_host,
+ $remote_user = 'absent',
$monitor_port = 'absent',
$gatetime = 'absent',
$first_poll = 'absent',
@@ -17,6 +18,11 @@ define autossh::tunnel (
include autossh
+ $real_remote_user = $remote_user ? {
+ 'absent' => $user,
+ default => $remote_user,
+ }
+
# According to the autossh documentation, using OpenSSH ServerAlive
# options is better than using a monitor port, so we do that by default.
if ($monitor_port == 'absent') {