summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-09-27 22:07:58 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-09-27 22:07:58 -0300
commite6d47c2092c352b0c9a0a72caee8638889577021 (patch)
tree75f8e505a9f3247a9a31118340a3f16a690c6d87 /share
parent85bcc5b941fac3611d66e9b66e149360259b2803 (diff)
downloadhydra-e6d47c2092c352b0c9a0a72caee8638889577021.tar.gz
hydra-e6d47c2092c352b0c9a0a72caee8638889577021.tar.bz2
Implementing other ssh frontends
Diffstat (limited to 'share')
-rwxr-xr-xshare/hydra/mass22
1 files changed, 21 insertions, 1 deletions
diff --git a/share/hydra/mass b/share/hydra/mass
index d7b466c..401d1af 100755
--- a/share/hydra/mass
+++ b/share/hydra/mass
@@ -6,6 +6,7 @@
# Issue commands with pssh
# See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=549117
function mass_pssh {
+ echo "Issuing $COMMAND on multiple nodes..."
hydra_set_tmpfile nodes
hydra $HYDRA nodes > $TMPWORK
parallel-ssh -h $TMPWORK -p 4 $COMMAND
@@ -21,6 +22,24 @@ function mass_loop {
done
}
+# Issue commands with dish
+function mass_dish {
+ echo "Issuing $COMMAND on multiple nodes..."
+ hydra_set_tmpfile nodes
+ hydra $HYDRA nodes > $TMPWORK
+ dish -f -p /dev/null -e "$COMMAND" -g $TMPWORK
+ hydra_unset_tmpfile $TMPWORK
+}
+
+# Issue commands with mussh
+function mass_mussh {
+ echo "Issuing $COMMAND on multiple nodes..."
+ hydra_set_tmpfile nodes
+ hydra $HYDRA nodes > $TMPWORK
+ mussh -b -H $TMPWORK -c "$COMMAND"
+ hydra_unset_tmpfile $TMPWORK
+}
+
# Load
source $APP_BASE/lib/hydra/functions || exit 1
hydra_config_load
@@ -42,4 +61,5 @@ elif [ "$BASENAME" == "mass-web" ]; then
fi
# Execute commands in hosts
-mass_loop $COMMAND
+BASEDIR="/tmp"
+mass_mussh $COMMAND