fault/devstack/plugin.sh
Dean Troyer b27c2143ab Add a basic devstack job
Begin working on a base devstack job for testing stx projects.
We have to pull a lot of stable/pike bits yet let STX services
run from master.

Change-Id: I6eee854888acb27b54c10c25d47e97d98a7f999c
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-11-01 23:38:13 -05:00

41 lines
1.2 KiB
Bash
Executable File

#!/bin/bash
# devstack/plugin.sh
# Triggers stx-fault specific functions to install and configure Fault Management
echo_summary "fault devstack plugin.sh called: $1/$2"
# check for service enabled
if is_service_enabled stx-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