update/devstack/plugin.sh
Dean Troyer 6be5a751c9 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
* Update the linters job in tox.ini to correctly include the devstack plugin

Change-Id: Ida3a6c07d49510a6ec0276e83a3f966b826de26e
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-02-20 14:34:17 -06:00

39 lines
1.2 KiB
Bash
Executable File

#!/bin/bash
# devstack/plugin.sh
# Triggers specific functions to install and configure stx-update
echo_summary "stx-update devstack plugin.sh called: $1/$2"
# check for service enabled
if is_service_enabled stx-update; then
if [[ "$1" == "stack" && "$2" == "install" ]]; then
# Perform installation of source
echo_summary "Install stx-update"
install_update
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
# Configure after the other layer 1 and 2 services have been configured
echo_summary "Configure stx-update"
# configure_update
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
# Initialize and start the service
echo_summary "Initialize and start stx-update"
# init_update
# start_update
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-update services"
# stop_update
fi
if [[ "$1" == "clean" ]]; then
echo_summary "Clean stx-update"
# cleanup_update
fi
fi