diff options
-rw-r--r-- | deploy_a_system.sh | 16 |
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" |