fault/devstack/settings
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

45 lines
978 B
Bash

#!/bin/bash
#
# SPDX-License-Identifier: Apache-2.0
#
# Copyright (C) 2019 Intel Corporation
#
# Devstack settings
# Services
# fault - Overall enable for this plugin
# fm-client
# fm-common
# fm-api
# fm-rest-api
# fm-mgr
# Defaults
# --------
STX_FAULT_NAME=fault
######### Plugin Specific ##########
enable_service $STX_FAULT_NAME
# This must not use any variables to work properly in OpenStack's DevStack playbook
define_plugin fault
# This works for Zuul jobs using OpenStack's DevStack roles
plugin_requires fault update
# Circular dependencies are fun!
# fm-rest-api has an undeclared dependency on cgtsclient from config
# so if that is not present we can't install it
if ! is_service_enabled 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
# update
enable_service tsconfig
fi
# Initial source of lib script
source $DEST/fault/devstack/lib/fault