Skip to content

Instantly share code, notes, and snippets.

@ngi644
Last active February 2, 2017 03:24
Show Gist options
  • Save ngi644/ed37a1da6658c72b3313578f88df8dc5 to your computer and use it in GitHub Desktop.
Save ngi644/ed37a1da6658c72b3313578f88df8dc5 to your computer and use it in GitHub Desktop.

Revisions

  1. ngi644 revised this gist Feb 2, 2017. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions custom_install_eucalyptus_3_insights.sh
    Original file line number Diff line number Diff line change
    @@ -34,7 +34,7 @@ VERSION_VARS=(
    PROGRAMS_VERSION
    )

    EXTRA_VARS="-e "
    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_simple.yml -i "localhost," $EXTRA_VARS
    cd /var/tmp/configuration/playbooks && sudo ansible-playbook -c local ./edx_sandbox_full.yml -i "localhost," $EXTRA_VARS
  2. ngi644 revised this gist Feb 2, 2017. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions custom_install_eucalyptus_3_insights.sh
    Original 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
  3. ngi644 created this gist Feb 2, 2017.
    42 changes: 42 additions & 0 deletions custom_install_eucalyptus_3_insights.sh
    Original 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