summaryrefslogtreecommitdiff
path: root/ob-deploy-branch.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ob-deploy-branch.sh')
-rwxr-xr-xob-deploy-branch.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/ob-deploy-branch.sh b/ob-deploy-branch.sh
new file mode 100755
index 0000000..2af4340
--- /dev/null
+++ b/ob-deploy-branch.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+branch="${1}"
+buildroot="$(pwd)"
+
+pushd ${buildroot}/conf
+cp ${HOME}/env.yaml.openbook .
+rm -f env.yaml
+ln -s env.yaml.openbook env.yaml
+popd
+pushd ${buildroot}
+ansible-playbook -i inventory_json_${branch}.rb openbook_installer.yaml
+popd