ClusterLabs/resource-agents — pull request #113 by aborrero (2012-07-11 11:19:54+00:00)
Title: New RA: sshtunnel

This new resource agent adds functionality to automatically create ssh connections (tunnels)
between all configured pacemaker nodes and/or other ssh servers.
By using this RA, the admin could benefit from using transparent ssh, connection multiplexing and
other advantages of ssh prestablished connections.

I rewrite some code as fghass asked for.

The basics of this RA:
It get information about how many and the name of every node in the pacemaker cluster.
Then it creates a SSH connection to every node, except the local node executing the RA.

If you deploy this as a clone, you will get all nodes connected via SSH. If you previously configured your ssh clients and servers properly (key exchange, enable multiplexing, etc..) all tools and services running in the cluster that are based on SSH will benefit from this previously stablished connection (tunnel): those services maybe rsync, recurrent scp, remote commands, and others.
Also, it can connect to other external ssh servers (none of the cluster nodes) so it's easy to deploy vpn-like ssh tunnels and have it in HA.
Both options at the same time, or just one of two, (pacemaker nodes interconnect and external ssh servers connection) is possible as well.

There is no concrete problem to solve but (from my point of view) a nice, interesting and optional functionality.