From 530ba8aa23254658e7e548ec6640a8f7f28b21f5 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 8 Nov 2012 13:01:17 +0100 Subject: [PATCH] skeleton for liveboot_testdeploy script --- liveboot_testdeploy.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 liveboot_testdeploy.sh 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" + -- 2.39.5