Commit b506c6fc by David Baumgold

Merge pull request #1593 from edx/use-openedx-release

Use OPENEDX_RELEASE instead of release branch if specified
parents b89b5dd3 d23df0e6
...@@ -13,6 +13,7 @@ if [ ! -d /edx/app/edx_ansible ]; then ...@@ -13,6 +13,7 @@ if [ ! -d /edx/app/edx_ansible ]; then
echo "Error: Base box is missing provisioning scripts." 1>&2 echo "Error: Base box is missing provisioning scripts." 1>&2
exit 1 exit 1
fi fi
OPENEDX_RELEASE=$1
export PYTHONUNBUFFERED=1 export PYTHONUNBUFFERED=1
source /edx/app/edx_ansible/venvs/edx_ansible/bin/activate source /edx/app/edx_ansible/venvs/edx_ansible/bin/activate
cd /edx/app/edx_ansible/edx_ansible/playbooks cd /edx/app/edx_ansible/edx_ansible/playbooks
...@@ -21,14 +22,14 @@ cd /edx/app/edx_ansible/edx_ansible/playbooks ...@@ -21,14 +22,14 @@ cd /edx/app/edx_ansible/edx_ansible/playbooks
# The vagrant-devstack.yml playbook will also do this, but only # The vagrant-devstack.yml playbook will also do this, but only
# after loading the playbooks into memory. If these are out of date, # after loading the playbooks into memory. If these are out of date,
# this can cause problems (e.g. looking for templates that no longer exist). # this can cause problems (e.g. looking for templates that no longer exist).
/edx/bin/update configuration release /edx/bin/update configuration ${OPENEDX_RELEASE-release}
# Did we specify an openedx release? # Did we specify an openedx release?
if [ -n "$1" ]; then if [ -n "$OPENEDX_RELEASE" ]; then
EXTRA_VARS="-e OPENEDX_RELEASE=$1" EXTRA_VARS="-e OPENEDX_RELEASE=$OPENEDX_RELEASE"
fi fi
ansible-playbook -i localhost, -c local vagrant-devstack.yml --tags=deploy -e configuration_version=release $EXTRA_VARS ansible-playbook -i localhost, -c local vagrant-devstack.yml --tags=deploy -e configuration_version=${OPENEDX_RELEASE-release} $EXTRA_VARS
SCRIPT SCRIPT
edx_platform_mount_dir = "edx-platform" edx_platform_mount_dir = "edx-platform"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment