aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorJerome <jerome@perlo.lib3.net>2009-12-25 04:11:25 -0500
committerJerome <jerome@perlo.lib3.net>2009-12-25 04:11:25 -0500
commit0321a3210ef6bb42ef8b536d0964bef081294d1d (patch)
tree1f66c99526ffa1bebe96f8279539511b2f96d228 /README
parent9d0fd33d5a30f385b6a1b84665858c063e11a8e7 (diff)
downloadpuppet-autossh-0321a3210ef6bb42ef8b536d0964bef081294d1d.tar.gz
puppet-autossh-0321a3210ef6bb42ef8b536d0964bef081294d1d.tar.bz2
Define autossh::tunnel resource and improve initscript
Diffstat (limited to 'README')
-rw-r--r--README42
1 files changed, 42 insertions, 0 deletions
diff --git a/README b/README
index e69de29..4143856 100644
--- a/README
+++ b/README
@@ -0,0 +1,42 @@
+This module manages autossh tunnels between hosts.
+
+
+Prerequisites
+=============
+
+* The user has to be able to log in to the remote ssh system automatically,
+ ssh-agent and/or authorized_keys can be used to accomplish this
+
+* SSH port forwarding must be enabled on the remote host
+
+
+Example
+=======
+
+autossh::tunnel { 'mysql':
+ ensure => present,
+ user => 'tunnel',
+ port => 3307,
+ hostport => 3306,
+ remote_host => 'mysql.example.org',
+}
+
+This will establish an ssh connection as user 'tunnel', to remote server
+'mysql.example.org' with port forwarding enabled. Connections on localhost to
+port '3307' with be forwarded through the tunnel to 'localhost', port 3306.
+
+Only connections originating from 'localhost' will be accepted into the tunnel.
+If you wish to allow other hosts on the network to use this tunnel, you may
+specify an explicit interface to bind the connection to using 'bind_address'.
+A value of '*' will bind to all interfaces.
+
+Furthermore, if you wish to use the remote host as a gateway to another host on
+the network, you may specify it using the 'host' parameter.
+
+
+More info
+=========
+
+* AutoSSH README : http://www.harding.motd.ca/autossh/README
+
+* SSH manual : http://www.openbsd.org/cgi-bin/man.cgi?query=ssh&sektion=1