allow GIT_BASE to be overridden
change the sourcing of localrc to allow GIT_BASE to be overridden. This makes it possible to use local mirrors for development. Change-Id: Ia7cc550c83d847166e10b66e401485081ac7b758
This commit is contained in:
parent
62144c9cba
commit
40703a705c
22
grenaderc
22
grenaderc
|
@ -3,30 +3,35 @@
|
|||
# Find the other rc files
|
||||
RC_DIR=$(cd $(dirname "$BASH_SOURCE") && pwd)
|
||||
|
||||
# Allow local overrides of env variables
|
||||
if [ -f $RC_DIR/localrc ]; then
|
||||
source $RC_DIR/localrc
|
||||
fi
|
||||
|
||||
# Base GIT Repo URL
|
||||
# Another option is http://review.openstack.org/p
|
||||
# Another option is https://github.com
|
||||
GIT_BASE=git://git.openstack.org
|
||||
GIT_BASE=${GIT_BASE:-git://git.openstack.org}
|
||||
#GIT_BASE=/opt/git
|
||||
|
||||
# Destination path for installation ``STACK_ROOT``
|
||||
STACK_ROOT=/opt/stack
|
||||
STACK_ROOT=${STACK_ROOT:-/opt/stack}
|
||||
DATA_DIR=${STACK_ROOT}/data
|
||||
|
||||
# Release info
|
||||
BASE_RELEASE=juno
|
||||
BASE_RELEASE=${BASE_RELEASE:-juno}
|
||||
BASE_RELEASE_DIR=${STACK_ROOT}/$BASE_RELEASE
|
||||
|
||||
TARGET_RELEASE=kilo
|
||||
TARGET_RELEASE=${TARGET_RELEASE:-kilo}
|
||||
TARGET_RELEASE_DIR=${STACK_ROOT}/$TARGET_RELEASE
|
||||
|
||||
# DevStack sources
|
||||
BASE_DEVSTACK_REPO=$GIT_BASE/openstack-dev/devstack.git
|
||||
BASE_DEVSTACK_BRANCH=stable/$BASE_RELEASE
|
||||
BASE_DEVSTACK_BRANCH=${BASE_DEVSTACK_BRANCH:-stable/$BASE_RELEASE}
|
||||
BASE_DEVSTACK_DIR=$BASE_RELEASE_DIR/devstack
|
||||
|
||||
TARGET_DEVSTACK_REPO=$BASE_DEVSTACK_REPO
|
||||
TARGET_DEVSTACK_BRANCH=master
|
||||
TARGET_DEVSTACK_BRANCH=${TARGET_DEVSTACK_BRANCH:-master}
|
||||
TARGET_DEVSTACK_DIR=$TARGET_RELEASE_DIR/devstack
|
||||
|
||||
TEMPEST_CONCURRENCY=${TEMPEST_CONCURRENCY:-$(nproc --all)}
|
||||
|
@ -56,11 +61,6 @@ NOVA_DIR=nova
|
|||
ACTIVE_TIMEOUT=120
|
||||
SERVICE_TIMEOUT=120
|
||||
|
||||
# Allow local overrides of env variables
|
||||
if [ -f $RC_DIR/localrc ]; then
|
||||
source $RC_DIR/localrc
|
||||
fi
|
||||
|
||||
# Defaults that use values from localrc go here
|
||||
|
||||
# Enable tempest
|
||||
|
|
Loading…
Reference in New Issue