add support for installing cyborg client
This change adds support for installing the python-cyborgclient from git. By default it is installed but it can be disabled by setting CYBORG_CLIENT_INSTALL=False. The version and repo can be set using CYBORG_CLIENT_REPO and CYBORG_CLIENT_BRANCH. Change-Id: I1dd616fe1e0c5b03118a23fc5afe2a4d3bb3686d
This commit is contained in:
@@ -52,6 +52,19 @@ function cleanup_agent {
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
function clone_cyborg_client {
|
||||
if [[ "${CYBORG_CLIENT_INSTALL}" == "True" ]]; then
|
||||
git_clone ${CYBORG_CLIENT_REPO} ${CYBORG_CLIENT_DIR} ${CYBORG_CLIENT_BRANCH}
|
||||
fi
|
||||
}
|
||||
|
||||
function install_cyborg_client {
|
||||
if [[ "${CYBORG_CLIENT_INSTALL}" == "True" ]]; then
|
||||
setup_develop ${CYBORG_CLIENT_DIR}
|
||||
fi
|
||||
}
|
||||
|
||||
# install_cyborg() - Install the things!
|
||||
function install_cyborg {
|
||||
# make sure all needed services are enabled
|
||||
|
||||
@@ -13,10 +13,12 @@ case $1 in
|
||||
case $2 in
|
||||
"pre-install")
|
||||
pre_install_agent
|
||||
clone_cyborg_client
|
||||
;;
|
||||
"install")
|
||||
echo_summary "Installing Cyborg"
|
||||
install_cyborg
|
||||
install_cyborg_client
|
||||
;;
|
||||
"post-config")
|
||||
# stack/post-config - Called after the layer 0 and 2 services
|
||||
|
||||
@@ -49,3 +49,9 @@ OPAE_DEVEL_PKG=${OPAE_DEVEL_PKG:-"opae-devel"}
|
||||
OPAE_DEVEL=${OPAE_DEVEL:-"${OPAE_DEVEL_PKG}-$OPAE_VERSION.x86_64"}
|
||||
OPAE_LIBS_PKG=${OPAE_LIBS_PKG:-"opae-libs"}
|
||||
OPAE_LIBS=${OPAE_LIBS:-"${OPAE_LIBS_PKG}-$OPAE_VERSION.x86_64"}
|
||||
|
||||
# client settings
|
||||
CYBORG_CLIENT_INSTALL=$(trueorfalse True CYBORG_CLIENT_INSTALL)
|
||||
CYBORG_CLIENT_REPO=${CYBORG_CLIENT_REPO:-"$GIT_BASE/openstack/python-cyborgclient"}
|
||||
CYBORG_CLIENT_BRANCH=${CYBORG_CLIENT_BRANCH:-master}
|
||||
CYBORG_CLIENT_DIR="${DEST}/python-cyborgclient"
|
||||
|
||||
Reference in New Issue
Block a user