summaryrefslogtreecommitdiff
path: root/leap-deploy-node.sh
diff options
context:
space:
mode:
authorLeap Admins <sysdev@leap.se>2013-05-05 09:19:14 +0000
committerLeap Admins <sysdev@leap.se>2013-05-05 09:19:14 +0000
commit76e3fb0af9db524c009203dee020d34d5452d8e9 (patch)
treedad21f056fff4f01593275644e06a48d0e2aca93 /leap-deploy-node.sh
parenta8d6b5f8e17c703be63efc064dbb2c83a8e9e719 (diff)
integrated leap-deploy-node.sh and leap-reset-deploy-all.sh into leap-platform-test
Diffstat (limited to 'leap-deploy-node.sh')
-rwxr-xr-xleap-deploy-node.sh44
1 files changed, 0 insertions, 44 deletions
diff --git a/leap-deploy-node.sh b/leap-deploy-node.sh
deleted file mode 100755
index 039f635..0000000
--- a/leap-deploy-node.sh
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/sh
-
-. /etc/leap/platform-test.cfg
-
-vm=$1
-
-LOG="$LOGDIR/deploy-$vm.log"
-ERRLOG="$LOGDIR/deploy-$vm-`date +"%F-%H%M%S"`-error.log"
-
-cd $PROVIDERDIR
-
-
-# remove colors until #1751 is fixed
-RMCOLORS='s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g'
-
-# we need to deploy with verbose level 2, and filter out unwanted stuff
-# until puppet errors show up in verbose level 0 +1 (#1750)
-FILTER_CLI='= read|= loading|= no change| - executing| = executing| = applying| = ran git| = checking| = synching| = skipping file_path| - cd .*; rsync -a| - hiera| = created hiera/| - cd /root/| - rolling backexecuting| - files/ca/client_ca.crt|\[bin,puppet\] ->'
-FILTER_PUPPET='] notice: |] No change to hostname|] Puppet apply complete|] warning: Dynamic lookup|] warning: Scope\(Class'
-FILTER_ALL="($FILTER_CLI|$FILTER_PUPPET)"
-
-
-echo "Deploying \"$vm\" on `date`"|tee -a $LOG
-
-leap $OPTS -v 2 deploy $vm 2>&1 | sed -r "$RMCOLORS" | tee -a $LOG | egrep -v "$FILTER_ALL" > $ERRLOG
-
-
-if [ $? -eq 0 ]
-then
- msg="From: $MAIL_FROM\nTo: $MAIL_TO\nSubject: Deploy to \"$vm\" had errors !\n\n`cat $ERRLOG`"
- echo "Deploy to \"$vm\" on `date` had errors." | tee -a $LOG
- echo
- cat $ERRLOG
-
- if [ "$MAIL_TO" != '' ]; then
- echo "Sending this mail to $MAIL_TO:"
- printf "$msg" | sendmail -t
- fi
-
-else
- echo "Deploy to $vm on `date` went fine."| tee -a $LOG
-fi
-
-echo