aboutsummaryrefslogtreecommitdiff
path: root/share/hydra/mass
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-11-13 16:01:50 -0200
committerSilvio Rhatto <rhatto@riseup.net>2010-11-13 16:01:50 -0200
commit1c975d65f221eb78baf2808893c059091740da2a (patch)
tree74f045e035ccea1150b0bf2ef92dbcc5ddfcea31 /share/hydra/mass
parentaad028515f31567af2155c7448201663535000a3 (diff)
downloadhydra-1c975d65f221eb78baf2808893c059091740da2a.tar.gz
hydra-1c975d65f221eb78baf2808893c059091740da2a.tar.bz2
Initial deploy and module-update tasks
Diffstat (limited to 'share/hydra/mass')
-rwxr-xr-xshare/hydra/mass9
1 files changed, 6 insertions, 3 deletions
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