From 6b67968cbc8ace91c859427688fed2ce7f7a1387 Mon Sep 17 00:00:00 2001 From: Mike Fedosin Date: Tue, 11 Jul 2017 19:01:39 +0300 Subject: [PATCH] Allow to specify custom modules and artifact types in devstack This patch adds a possibility to set third-party modules and enable additional artifact types during devstack deployment. Change-Id: I84fcf741f20e061c73515c979d0fe89da460f467 --- devstack/plugin.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 8137ec8..d0841a8 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -57,6 +57,16 @@ function configure_glare { iniset $GLARE_CONF_FILE DEFAULT debug $GLARE_DEBUG + # Specify additional modules with external artifact types + if [ -n "$GLARE_CUSTOM_MODULES" ]; then + iniset $GLARE_CONF_FILE DEFAULT custom_artifact_types_modules $GLARE_CUSTOM_MODULES + fi + + # Specify a list of enabled artifact types + if [ -n "$GLARE_ENABLED_TYPES" ]; then + iniset $GLARE_CONF_FILE DEFAULT enabled_artifact_types $GLARE_ENABLED_TYPES + fi + oslopolicy-sample-generator --namespace=glare --output-file=$GLARE_POLICY_FILE sed -i 's/^#"//' $GLARE_POLICY_FILE