diff options
| author | Carlos Konstanski <ckonstanski@pippiandcarlos.com> | 2017-11-28 14:17:35 -0700 |
|---|---|---|
| committer | Carlos Konstanski <ckonstanski@pippiandcarlos.com> | 2017-11-28 14:17:35 -0700 |
| commit | ee05c6885f8688c101a186690f716250d7aca657 (patch) | |
| tree | cf29d6237ff6455471c1804ed14d45fadf2f7cf0 /salt/openbook/ansible/files/ob-ctl.sh | |
| parent | 184f021a36226f3b0c8dc7f85e440692808f02f8 (diff) | |
syncing up with vzw
Diffstat (limited to 'salt/openbook/ansible/files/ob-ctl.sh')
| -rw-r--r-- | salt/openbook/ansible/files/ob-ctl.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/salt/openbook/ansible/files/ob-ctl.sh b/salt/openbook/ansible/files/ob-ctl.sh new file mode 100644 index 0000000..6a2a108 --- /dev/null +++ b/salt/openbook/ansible/files/ob-ctl.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +branch="${1}" +action="${2}" +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 -e "action=${action}" openbook_stop_start.yaml +popd |
