diff options
Diffstat (limited to 'salt/openbook/ansible/files/ob-deploy-branch.sh')
| -rw-r--r-- | salt/openbook/ansible/files/ob-deploy-branch.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/salt/openbook/ansible/files/ob-deploy-branch.sh b/salt/openbook/ansible/files/ob-deploy-branch.sh new file mode 100644 index 0000000..2af4340 --- /dev/null +++ b/salt/openbook/ansible/files/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 |
