summaryrefslogtreecommitdiff
path: root/deploy_a_system.sh
diff options
context:
space:
mode:
Diffstat (limited to 'deploy_a_system.sh')
-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"