Support fine-grained service enablement

Allow cgtsclient to be installed without any of the other
sysinv services or prerequisites.  Also allow some selection
within sysinv services.

Change-Id: Ie8f10cb11111e9545103df001976295fc4aba3a6
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
This commit is contained in:
Dean Troyer
2019-03-06 10:19:56 -06:00
parent 5442d321d1
commit b9ab8f9757
4 changed files with 67 additions and 50 deletions

View File

@@ -1,6 +1,13 @@
#!/bin/bash
# Devstack settings
# Services
# cgtsclient
# sysinv
# sysinv-agent
# sysinv-api
# sysinv-cond
# Defaults
# --------
@@ -21,5 +28,18 @@ 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/stx-config/devstack/lib/stx-config