From bedbbf7b0cc9dc418c5e0c20a7be59365798a876 Mon Sep 17 00:00:00 2001 From: Patrick Darley Date: Thu, 10 Sep 2015 10:48:38 +0000 Subject: 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. --- deploy_a_system.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 deploy_a_system.sh (limited to 'deploy_a_system.sh') 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" -- cgit v1.2.1