ce095fb697
Story: 2005265 Task: 30092 Change-Id: Id82b93d30736ed7a386c93f34a6a5be88b7a3552 Signed-off-by: Erich Cordoba <erich.cordoba.malibran@intel.com>
60 lines
1.7 KiB
Bash
60 lines
1.7 KiB
Bash
#!/bin/bash
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
# Copyright (C) 2019 Intel Corporation
|
|
#
|
|
|
|
# Devstack settings
|
|
|
|
# This plugin enables StarlingX stx-update services and follows the
|
|
# DevStack plugin contract:
|
|
# https://docs.openstack.org/devstack/latest/plugins.html#plugin-sh-contract
|
|
|
|
# Services
|
|
|
|
# Defaults
|
|
# --------
|
|
|
|
STX_NFV_NAME=stx-nfv
|
|
|
|
######### Plugin Specific ##########
|
|
enable_service $STX_NFV_NAME
|
|
|
|
# This must not use any variables to work properly in OpenStack's DevStack playbook
|
|
define_plugin stx-nfv
|
|
# This works for Zuul jobs using OpenStack's DevStack roles
|
|
plugin_requires stx-nfv stx-update
|
|
plugin_requires stx-nfv stx-fault
|
|
plugin_requires stx-nfv stx-metal
|
|
|
|
if is_service_enabled stx-nfv; then
|
|
# Enable prerequisites here
|
|
:
|
|
fi
|
|
|
|
# NOTE(dtroyer): This needs to be refiend a bit yet, for example fo we want
|
|
# to abort or just disable guest-agent and guest-server if the
|
|
# prereqs are not configured?
|
|
if is_service_enabled guest-agent || is_service_enabled guest-server; then
|
|
# These guest- services require additional prerequisites
|
|
# guest-client: to install guest_heartbeat_api_msg_defs.h
|
|
# stx-metal: to install mtce_common header files and libraries
|
|
# fm-common: to install fmcommon library
|
|
local req_services="guest-client stx-metal fm-common"
|
|
for srv in $req_services;do
|
|
if ! is_service_enabled "$srv"; then
|
|
die $LINENO "$srv should be enabled for guestAgent/guestServer"
|
|
fi
|
|
done
|
|
fi
|
|
|
|
if is_service_enabled guest-scale-helper; then
|
|
# guest-scale-helper needs header files and libraries built from the folder
|
|
# guest-comm
|
|
enable_service host-agent
|
|
fi
|
|
|
|
# Initial source of lib script
|
|
source $DEST/stx-nfv/devstack/lib/stx-nfv
|