integ/devstack/plugin.sh
Dean Troyer ed19c6c0bd DevStack plugin updates for bionic job
This makes some cleanup changes to the DevStack plugin for the
change to master and bionic.
* Define values for precedence handling by the upstream devstack playbook
* Add STX_INST_DIR for a deterministic install location
* Add stx-update to required plugins
* Sort functions in the main plugin
* Cleanup comments in a couple of places

Change-Id: I147882e8980f3e1b599008205db268eb9e7736b0
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-02-20 15:07:09 -06:00

39 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
# devstack/plugin.sh
# Triggers specific functions to install and configure stx-integ
echo_summary "stx-integ devstack plugin.sh called: $1/$2"
# check for service enabled
if is_service_enabled stx-integ; then
if [[ "$1" == "stack" && "$2" == "install" ]]; then
# Perform installation of source
echo_summary "Install stx-integ"
install_integ
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
# Configure after the other layer 1 and 2 services have been configured
echo_summary "Configure stx-integ"
configure_integ
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
# Initialize and start the service
echo_summary "Initialize and start stx-integ"
init_integ
start_integ
elif [[ "$1" == "stack" && "$2" == "test-config" ]]; then
# do sanity test
echo_summary "do test-config"
fi
if [[ "$1" == "unstack" ]]; then
# Shut down services
echo_summary "Stop stx-integ services"
stop_integ
fi
if [[ "$1" == "clean" ]]; then
echo_summary "Clean stx-update"
cleanup_integ
fi
fi