enable branch selection in devstack installation

With this patch, user can specify the installation version..

Change-Id: Icde4143d84f50b5b4199403070bf5dab12751682
This commit is contained in:
Yumeng Bao 2019-07-05 02:01:40 -07:00 committed by YumengBao
parent fcdb495619
commit f4758c9173
1 changed files with 7 additions and 1 deletions

View File

@ -27,8 +27,11 @@ declare -r -g _CYBORG_DEVSTACK_LIB=1
# Defaults
# --------
# Set up default directories
# Set up default repos
CYBORG_REPO=${CYBORG_REPO:-${GIT_BASE}/openstack/cyborg.git}
CYBORG_BRANCH=${CYBORG_BRANCH:-master}
# Set up default directories
CYBORG_DIR=$DEST/cyborg
CYBORG_DEVSTACK_DIR=$CYBORG_DIR/devstack
CYBORG_DEVSTACK_FILES_DIR=$CYBORG_DEVSTACK_DIR/files
@ -78,6 +81,9 @@ function install_cyborg_in_controller {
function install_cyborg {
# make sure all needed services are enabled
install_cyborg_in_controller
git_clone $CYBORG_REPO $CYBORG_DIR $CYBORG_BRANCH
setup_develop $CYBORG_DIR
}