From 1c975d65f221eb78baf2808893c059091740da2a Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 13 Nov 2010 16:01:50 -0200 Subject: Initial deploy and module-update tasks --- share/hydra/mass | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'share/hydra/mass') diff --git a/share/hydra/mass b/share/hydra/mass index 410e36d..06447c2 100755 --- a/share/hydra/mass +++ b/share/hydra/mass @@ -4,6 +4,7 @@ # # Issue commands with pssh +# See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=549117 function mass_pssh { hydra_set_tmpfile nodes hydra $HYDRA nodes > $TMPWORK @@ -14,15 +15,14 @@ function mass_pssh { # Issue commands with a for loop function mass_loop { for node in $NODES; do + echo "Issuing $COMMAND on multiple nodes..." echo "Connecting to $node..." ssh -o ConnectTimeout=15 $node $COMMAND done } -# Load functions +# Load source $APP_BASE/lib/hydra/functions || exit 1 - -# Load config hydra_config_load # Command line arguments @@ -34,6 +34,9 @@ if [ "$BASENAME" == "mass-update" ]; then COMMAND="sudo aptitude update" elif [ "$BASENAME" == "mass-update" ]; then COMMAND="sudo aptitude safe-upgrade" +elif [ "$BASENAME" == "mass-web" ]; then + echo "Currently not implemented." + exit 1 fi # Build node list -- cgit v1.2.3