From 0493747f5d1b30008b4170b3d48080abfa224700 Mon Sep 17 00:00:00 2001 From: ckonstanski Date: Tue, 24 Oct 2017 18:27:27 -0600 Subject: make it work for all 4 git branches --- salt/openbook/ansible/files/deploy-branch.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 salt/openbook/ansible/files/deploy-branch.sh (limited to 'salt/openbook/ansible/files/deploy-branch.sh') 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 -- cgit v1.3