diff options
| author | Carlos Konstanski <ckonstanski@pippiandcarlos.com> | 2017-11-28 09:40:36 -0700 |
|---|---|---|
| committer | Carlos Konstanski <ckonstanski@pippiandcarlos.com> | 2017-11-28 09:40:36 -0700 |
| commit | c619c4286fd83e49a6d976613e26691568c2a428 (patch) | |
| tree | a70988a7deab90aa7a9b491575b77656c3378baa /salt/openbook/ansible/files/ob-ctl.sh | |
| parent | 4d56db6c4fa8861d0b2fb4ff12ed94548a02e68f (diff) | |
Openbook CI: jenkins jobs for stopping, starting, restarting openbook
Issue: IS-36
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 |
