
The goal is to enable higgins-api and higgins-conductor service Currently swift service in devstack repo using "-s" to test swift service is enable or not, "higgins-*" will be known as swift service, devstack will then install swift too, swift team is woking on fix that in devstack. BTW, higgins-api port chosed as '9517'. Test passed locally. Change-Id: Ie12cab26a4916c4232b92c04e53098fc450a0a44
50 lines
1.1 KiB
Bash
Executable File
50 lines
1.1 KiB
Bash
Executable File
# higgins - Devstack extras script to install higgins
|
|
|
|
# Save trace setting
|
|
XTRACE=$(set +o | grep xtrace)
|
|
set -o xtrace
|
|
|
|
echo_summary "higgins's plugin.sh was called..."
|
|
source $DEST/higgins/devstack/lib/higgins
|
|
(set -o posix; set)
|
|
|
|
if is_service_enabled higgins-api higgins-conductor; then
|
|
if [[ "$1" == "stack" && "$2" == "install" ]]; then
|
|
echo_summary "Installing higgins"
|
|
install_higgins
|
|
|
|
# TODO
|
|
# LIBS_FROM_GIT="${LIBS_FROM_GIT},python-higginsclient"
|
|
# install_higginsclient
|
|
|
|
cleanup_higgins
|
|
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
|
|
echo_summary "Configuring higgins"
|
|
configure_higgins
|
|
|
|
if is_service_enabled key; then
|
|
create_higgins_accounts
|
|
fi
|
|
|
|
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
|
|
# Initialize higgins
|
|
init_higgins
|
|
|
|
# Start the higgins API and higgins conductor
|
|
echo_summary "Starting higgins"
|
|
start_higgins
|
|
|
|
fi
|
|
|
|
if [[ "$1" == "unstack" ]]; then
|
|
stop_higgins
|
|
fi
|
|
|
|
if [[ "$1" == "clean" ]]; then
|
|
cleanup_higgins
|
|
fi
|
|
fi
|
|
|
|
# Restore xtrace
|
|
$XTRACE
|