5f2a016ea3
All contents mentioning higgins are updated to zun using below 3 patterns: :%s/higgins/zun/g :%s/HIGGINS/ZUN/g :%s/Higgins/Zun/g Co-Authored-By: Hongbin Lu <hongbin.lu@huawei.com> Change-Id: I33a979aa01421524c1cff6fb5cc2b4023bf1fe84
50 lines
1.0 KiB
Bash
Executable File
50 lines
1.0 KiB
Bash
Executable File
# zun - Devstack extras script to install zun
|
|
|
|
# Save trace setting
|
|
XTRACE=$(set +o | grep xtrace)
|
|
set -o xtrace
|
|
|
|
echo_summary "zun's plugin.sh was called..."
|
|
source $DEST/higgins/devstack/lib/zun
|
|
(set -o posix; set)
|
|
|
|
if is_service_enabled zun-api zun-conductor; then
|
|
if [[ "$1" == "stack" && "$2" == "install" ]]; then
|
|
echo_summary "Installing zun"
|
|
install_zun
|
|
|
|
# TODO
|
|
# LIBS_FROM_GIT="${LIBS_FROM_GIT},python-zunclient"
|
|
# install_zunclient
|
|
|
|
cleanup_zun
|
|
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
|
|
echo_summary "Configuring zun"
|
|
configure_zun
|
|
|
|
if is_service_enabled key; then
|
|
create_zun_accounts
|
|
fi
|
|
|
|
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
|
|
# Initialize zun
|
|
init_zun
|
|
|
|
# Start the zun API and zun conductor
|
|
echo_summary "Starting zun"
|
|
start_zun
|
|
|
|
fi
|
|
|
|
if [[ "$1" == "unstack" ]]; then
|
|
stop_zun
|
|
fi
|
|
|
|
if [[ "$1" == "clean" ]]; then
|
|
cleanup_zun
|
|
fi
|
|
fi
|
|
|
|
# Restore xtrace
|
|
$XTRACE
|