a318debe7f
Story: 2005265 Task: 30087 Change-Id: If7ae800feba773442e452b3183107696e2e6f88e Signed-off-by: Erich Cordoba <erich.cordoba.malibran@intel.com>
45 lines
1018 B
Bash
45 lines
1018 B
Bash
#!/bin/bash
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
# Copyright (C) 2019 Intel Corporation
|
|
#
|
|
|
|
# Devstack settings
|
|
|
|
# Services
|
|
# stx-fault - Overall enable for this plugin
|
|
# fm-client
|
|
# fm-common
|
|
# fm-api
|
|
# fm-rest-api
|
|
# fm-mgr
|
|
|
|
# Defaults
|
|
# --------
|
|
|
|
STX_FAULT_NAME=stx-fault
|
|
|
|
######### Plugin Specific ##########
|
|
enable_service $STX_FAULT_NAME
|
|
|
|
# This must not use any variables to work properly in OpenStack's DevStack playbook
|
|
define_plugin stx-fault
|
|
# This works for Zuul jobs using OpenStack's DevStack roles
|
|
plugin_requires stx-fault stx-update
|
|
|
|
# Circular dependencies are fun!
|
|
# fm-rest-api has an undeclared dependency on cgtsclient from stx-config
|
|
# so if that is not present we can't install it
|
|
if ! is_service_enabled stx-config; then
|
|
disable_service fm-rest-api
|
|
fi
|
|
# but fm-rest-api has its own (declared!) external dependencies too
|
|
if is_service_enabled fm-rest-api; then
|
|
# stx-update
|
|
enable_service tsconfig
|
|
fi
|
|
|
|
# Initial source of lib script
|
|
source $DEST/stx-fault/devstack/lib/stx-fault
|