Skip to content

Instantly share code, notes, and snippets.

@sfoolish
Created February 13, 2017 02:54
Show Gist options
  • Save sfoolish/c5a1f7270bf26e28fce04d92c83cac89 to your computer and use it in GitHub Desktop.
Save sfoolish/c5a1f7270bf26e28fce04d92c83cac89 to your computer and use it in GitHub Desktop.

Revisions

  1. sfoolish created this gist Feb 13, 2017.
    34 changes: 34 additions & 0 deletions compass-pod-run.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,34 @@
    #!/bin/bash

    compass_work_dir=$1
    if [[ $compass_work_dir == "" ]]; then
    echo "Please Run: $0 <compass_work_dir>"
    exit 1
    fi
    cd $compass_work_dir
    COMPASS_WORK_DIR=$(pwd)

    export OS_VERSION=centos7
    #export OS_VERSION=xenial
    export OPENSTACK_VERSION=newton

    export ISO_PATH=${COMPASS_WORK_DIR}/build_output/compass.iso
    export ISO_URL=file://${ISO_PATH}

    export DHA=${COMPASS_WORK_DIR}/deploy/conf/vm_environment/os-nosdn-nofeature-ha.yml
    export NETWORK=${COMPASS_WORK_DIR}/deploy/conf/vm_environment/huawei-virtual2/network.yml
    export VIRT_NUMBER=5

    # export DHA=${COMPASS_WORK_DIR}/deploy/conf/hardware_environment/huawei-pod1/os-nosdn-nofeature-ha.yml
    # export NETWORK=${COMPASS_WORK_DIR}/deploy/conf/hardware_environment/huawei-pod1/network.yml
    # export INSTALL_NIC=
    # unset VIRT_NUMBER

    export DEPLOY_FIRST_TIME=False
    export DEPLOY_HOST=${DEPLOY_HOST-"true"}

    set -e
    ls $ISO_PATH $DHA $NETWORK
    set +e

    ./deploy.sh