Last active
February 2, 2017 03:24
-
-
Save ngi644/ed37a1da6658c72b3313578f88df8dc5 to your computer and use it in GitHub Desktop.
Revisions
-
ngi644 revised this gist
Feb 2, 2017 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -34,7 +34,7 @@ VERSION_VARS=( PROGRAMS_VERSION ) EXTRA_VARS="" for var in ${VERSION_VARS[@]}; do # Each variable can be overridden by a similarly-named environment variable, # or OPENEDX_RELEASE, if provided. @@ -45,4 +45,4 @@ for var in ${VERSION_VARS[@]}; do fi done cd /var/tmp/configuration/playbooks && sudo ansible-playbook -c local ./edx_sandbox_full.yml -i "localhost," $EXTRA_VARS -
ngi644 revised this gist
Feb 2, 2017 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,9 @@ sudo rm -r /var/lib/apt/lists sudo mkdir /var/lib/apt/lists sudo mkdir /var/lib/apt/lists/patial sudo apt-get autoclean sudo apt-get clean sudo apt-get update -y sudo apt-get upgrade -y sudo apt-get install -y build-essential software-properties-common python-software-properties curl git-core libxml2-dev libxslt1-dev libfreetype6-dev python-pip python-apt python-dev libxmlsec1-dev swig libmysqlclient-dev -
ngi644 created this gist
Feb 2, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,42 @@ sudo apt-get update -y sudo apt-get upgrade -y sudo apt-get install -y build-essential software-properties-common python-software-properties curl git-core libxml2-dev libxslt1-dev libfreetype6-dev python-pip python-apt python-dev libxmlsec1-dev swig libmysqlclient-dev sudo apt-get install -y python-dev --upgrade sudo pip install --upgrade pip sudo pip install setuptools --upgrade sudo -H pip install --upgrade virtualenv cd /var/tmp git clone https://github.com/ngi644/configuration cd configuration/ git checkout ngi644/custom_eucalyptus.3 sudo pip install -r requirements.txt sudo git config --global url."https://".insteadOf git:// export OPENEDX_RELEASE=open-release/eucalyptus.3 VERSION_VARS=( edx_platform_version certs_version forum_version xqueue_version configuration_version demo_version NOTIFIER_VERSION INSIGHTS_VERSION ANALYTICS_API_VERSION PROGRAMS_VERSION ) EXTRA_VARS="-e " for var in ${VERSION_VARS[@]}; do # Each variable can be overridden by a similarly-named environment variable, # or OPENEDX_RELEASE, if provided. ENV_VAR=$(echo $var | tr '[:lower:]' '[:upper:]') eval override=\${$ENV_VAR-\$OPENEDX_RELEASE} if [ -n "$override" ]; then EXTRA_VARS="-e $var=$override $EXTRA_VARS" fi done cd /var/tmp/configuration/playbooks && sudo ansible-playbook -c local ./edx_sandbox_simple.yml -i "localhost," $EXTRA_VARS