fault/devstack/plugin.sh
Dean Troyer cd5693bc48 Followup opendev cleanup and test jobs
Because we are in a deadly embrace with the config plugin after
the OpenDev work the config plugin is being forced off in this job
to remove one of the dependencies.

Ultimately extracting cgts-client to be installable stand-alone
is a better solution to allow other plugins to install directly.

Depends-On: https://review.opendev.org/653961
Change-Id: I47f1d0df404fc40a9d514c1b0689b5457dbc3f87
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-04-20 20:26:25 -05:00

46 lines
1.3 KiB
Bash
Executable File

#!/bin/bash
#
# SPDX-License-Identifier: Apache-2.0
#
# Copyright (C) 2019 Intel Corporation
#
# devstack/plugin.sh
# Triggers stx-fault specific functions to install and configure Fault Management
echo_summary "stx-fault devstack plugin.sh called: $1/$2"
# check for service enabled
if is_service_enabled fault; then
if [[ "$1" == "stack" && "$2" == "install" ]]; then
# Perform installation of source
echo_summary "Install stx-fault"
install_fault
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
# Configure after the other layer 1 and 2 services have been configured
echo_summary "Configure stx-fault"
configure_fault
create_fault_user_group
create_fault_accounts
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
# Initialize and start the service
echo_summary "Initialize and start stx-fault"
init_fault
start_fault
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-fault services"
stop_fault
fi
if [[ "$1" == "clean" ]]; then
cleanup_fault
fi
fi