From: Holger Levsen Date: Thu, 8 Nov 2012 12:01:17 +0000 (+0100) Subject: skeleton for liveboot_testdeploy script X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=530ba8aa23254658e7e548ec6640a8f7f28b21f5;p=profitbricks%2Fjenkins-build-scripts.git skeleton for liveboot_testdeploy script --- diff --git a/liveboot_testdeploy.sh b/liveboot_testdeploy.sh new file mode 100755 index 0000000..1b4cdb0 --- /dev/null +++ b/liveboot_testdeploy.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +# copyright 2012 Holger Levsen +# GPL2 licenced + +set -e +set -x +export + +if [ "$LIVEBOOT_ID" != "" ] ; then + echo "Ok." +else + echo "Fail.a" + exit 1 +fi + +#ssh liveboot@riserver echo Ok + +ping -c 1 pserver2 +cat /etc/jenkins/pserver2.ipmi | ipmitool -H 192.168.178.49 -U ADMIN -a chassis power reset + +sleep 2 +ping -c 1 pserver2 || true + +sleep 60 +ping -c 1 pserver2 + +figlet "OK" +