config/devstack/settings
Dean Troyer 97ce4e8961 Followup opendev cleanup and test jobs
Depends-On: https://review.opendev.org/653964
Depends-On: https://review.opendev.org/653961
Depends-On: https://review.opendev.org/654013
Change-Id: I78959af02a0183d993b5a5609adb69e5464cc261
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-04-20 21:04:15 -05:00

51 lines
1.0 KiB
Bash

#!/bin/bash
#
# SPDX-License-Identifier: Apache-2.0
#
# Copyright (C) 2019 Intel Corporation
#
# Devstack settings
# Services
# cgtsclient
# sysinv
# sysinv-agent
# sysinv-api
# sysinv-cond
# Defaults
# --------
STX_CONFIG_NAME=config
######### Plugin Specific ##########
enable_service $STX_CONFIG_NAME
# This must not use any variables to work properly in OpenStack's DevStack playbook
define_plugin config
# This works for Zuul jobs using OpenStack's DevStack roles
plugin_requires config integ
plugin_requires config update
# Handle STX pre-reqs
# stx-integ
enable_service platform-util
# stx-update
enable_service sw-patch tsconfig
if is_service_enabled sysinv-agent; then
enable_service sysinv
fi
if is_service_enabled sysinv-agent; then
local req_services="key rabbit nova neutron"
for srv in $req_services;do
if ! is_service_enabled "$srv"; then
die $LINENO "$srv should be enabled for SysInv"
fi
done
fi
# Initial source of lib script
source $DEST/config/devstack/lib/config