diff options
| author | ckonstanski <ckonstanski@pippiandcarlos.com> | 2017-12-08 17:15:09 +0000 |
|---|---|---|
| committer | ckonstanski <ckonstanski@pippiandcarlos.com> | 2017-12-08 17:15:09 +0000 |
| commit | 37de0831718e5a4e54210462f501c97394803008 (patch) | |
| tree | a6e39938d3572f269378e109e0f1a0225fa1060c /ob-ctl.sh | |
| parent | 621a5c280a71fe3ede8742b9b289ee0e3d2a9875 (diff) | |
autocommit Fri Dec 8 17:15:09 UTC 2017
Diffstat (limited to 'ob-ctl.sh')
| -rwxr-xr-x | ob-ctl.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ob-ctl.sh b/ob-ctl.sh new file mode 100755 index 0000000..7e3a357 --- /dev/null +++ b/ob-ctl.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +branch="${1}" +action="${2}" +extra_args="${3}" +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} extra_args=${extra_args}" openbook_stop_start.yaml +popd |
