* Install build artifacts to a fixed dir rather than attempting
to infer a location based on the Python binary location. That
was intended to work seamlessly in venvs, we'll burn that bridge
when we come to it, for now just put it all in
$DEST/usr/{bin|include|lib}. This also removed the need for
root access for these files to allow the build steps to be performed
on laptops that may not otherwise run DevStack.
* Handle some side-effects of a non-default install location for
the build artifacts.
* Add missing CentOS prereqs for base image builds:
fm-common:
- libuuid-devel
- postgresql-devel
* Add the declarations to settings for the devstack playbook to
handle plugin precedence order properly.
Change-Id: I8ec59f83dff522fcec0be4e0a650e402a2747a98
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
39 lines
934 B
Bash
39 lines
934 B
Bash
#!/bin/bash
|
|
# 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
|