Commit d2ec27f0 by David Baumgold

Make vagrant.sh respect OPENEDX_RELEASE env variable

parent 3501b385
...@@ -29,11 +29,24 @@ sudo apt-get install -y build-essential software-properties-common python-softwa ...@@ -29,11 +29,24 @@ sudo apt-get install -y build-essential software-properties-common python-softwa
sudo pip install --upgrade pip sudo pip install --upgrade pip
sudo pip install --upgrade virtualenv sudo pip install --upgrade virtualenv
## Did we specify an openedx release?
if [ -n "$OPENEDX_RELEASE" ]; then
EXTRA_VARS="-e edx_platform_version=$OPENEDX_RELEASE \
-e ora2_version=$OPENEDX_RELEASE \
-e certs_version=$OPENEDX_RELEASE \
-e forum_version=$OPENEDX_RELEASE \
-e xqueue_version=$OPENEDX_RELEASE \
"
CONFIG_VER=$OPENEDX_RELEASE
else
CONFIG_VER="release"
fi
## ##
## Clone the configuration repository and run Ansible ## Clone the configuration repository and run Ansible
## ##
cd /var/tmp cd /var/tmp
git clone -b release https://github.com/edx/configuration git clone -b $CONFIG_VER https://github.com/edx/configuration
## ##
## Install the ansible requirements ## Install the ansible requirements
...@@ -44,4 +57,4 @@ sudo pip install -r requirements.txt ...@@ -44,4 +57,4 @@ sudo pip install -r requirements.txt
## ##
## Run the edx_sandbox.yml playbook in the configuration/playbooks directory ## Run the edx_sandbox.yml playbook in the configuration/playbooks directory
## ##
cd /var/tmp/configuration/playbooks && sudo ansible-playbook -c local ./edx_sandbox.yml -i "localhost," cd /var/tmp/configuration/playbooks && sudo ansible-playbook -c local ./edx_sandbox.yml -i "localhost," $EXTRA_VARS
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