summaryrefslogtreecommitdiff
path: root/salt/openbook/ansible/files/deploy-branch.sh
diff options
context:
space:
mode:
Diffstat (limited to 'salt/openbook/ansible/files/deploy-branch.sh')
-rw-r--r--salt/openbook/ansible/files/deploy-branch.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/salt/openbook/ansible/files/deploy-branch.sh b/salt/openbook/ansible/files/deploy-branch.sh
new file mode 100644
index 0000000..3a1a72e
--- /dev/null
+++ b/salt/openbook/ansible/files/deploy-branch.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+env="${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_${env}.rb openbook_installer.yaml
+popd