summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Darley <patrickdarley@ip-172-31-16-103.eu-west-1.compute.internal>2015-09-10 10:48:38 +0000
committerPatrick Darley <patrickdarley@ip-172-31-16-103.eu-west-1.compute.internal>2015-09-10 10:48:38 +0000
commitbedbbf7b0cc9dc418c5e0c20a7be59365798a876 (patch)
tree7a9160adbe02e2a72bb26bd3ac5af24971246352
parent5bc01ff1f983dbf88bbd606118762663beccfcfb (diff)
downloadbuildslave-scripts-bedbbf7b0cc9dc418c5e0c20a7be59365798a876.tar.gz
A crude script to deploy a cluster using ybd on CIAT
Untested, but should probably work. Waiting for build to complete prior to test. No error handeling or anything yet, so need to get the input right.
-rw-r--r--deploy_a_system.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/deploy_a_system.sh b/deploy_a_system.sh
new file mode 100644
index 0000000..99ac9b9
--- /dev/null
+++ b/deploy_a_system.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+# Script to deploy a cluster
+
+cluster_name="$1"
+
+definitions_dir=/home/patrickdarley/definitions
+ybd_dir=/home/patrickdarley/ybd
+
+# try changing to the definitions dir then building
+# ybd seems to set the "target" to be current dir, regardless
+# Of it being definitions or not
+
+cd "$definitions_dir"
+
+sudo "$ybd_dir"/ybd.py clusters/"$cluster_name"