]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
skeleton for liveboot_testdeploy script
authorHolger Levsen <holger@layer-acht.org>
Thu, 8 Nov 2012 12:01:17 +0000 (13:01 +0100)
committerHolger Levsen <holger@layer-acht.org>
Thu, 8 Nov 2012 12:01:17 +0000 (13:01 +0100)
liveboot_testdeploy.sh [new file with mode: 0755]

diff --git a/liveboot_testdeploy.sh b/liveboot_testdeploy.sh
new file mode 100755 (executable)
index 0000000..1b4cdb0
--- /dev/null
@@ -0,0 +1,29 @@
+#!/bin/bash
+
+# copyright 2012 Holger Levsen <holger@layer-acht.org>
+# 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"
+