diff options
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 |
