diff options
author | Jerome Charaoui <jcharaoui@cmaisonneuve.qc.ca> | 2010-02-24 09:51:55 -0500 |
---|---|---|
committer | Jerome Charaoui <jcharaoui@cmaisonneuve.qc.ca> | 2010-02-24 09:59:57 -0500 |
commit | fcad3473dd09ae8a42b5095001d721da1dd24f1a (patch) | |
tree | 565dbe6826b1aaae9b57b9a10992cd59be3f96b7 /manifests | |
parent | 8d9bded5e977016d13e6521ee383cb3d5918506f (diff) | |
download | puppet-autossh-fcad3473dd09ae8a42b5095001d721da1dd24f1a.tar.gz puppet-autossh-fcad3473dd09ae8a42b5095001d721da1dd24f1a.tar.bz2 |
add remote_user parameter
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/tunnel.pp | 6 |
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') { |