From ab5d0cadb0191ad3f38797fcd5792f478e50e28f Mon Sep 17 00:00:00 2001 From: Julia Kreger Date: Fri, 16 Feb 2024 07:24:30 -0800 Subject: [PATCH] ci: support overriding the service project name Extension to extend the default service project name value, which if set can be overrridden in Ironic's policy configuration. Change-Id: I60cc53a34c7062261703492e720989efedca4f2b --- devstack/lib/ironic | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/devstack/lib/ironic b/devstack/lib/ironic index 920ac455f4..92c671634d 100644 --- a/devstack/lib/ironic +++ b/devstack/lib/ironic @@ -1542,6 +1542,10 @@ function configure_ironic { # configured for a system scoped account. iniset $IRONIC_CONF_FILE DEFAULT rbac_service_role_elevated_access true fi + if [[ "${SERVICE_PROJECT_NAME:-service}" != "service" ]]; then + iniset $IRONIC_CONF_FILE DEFAULT rbac_service_project_name $SERVICE_PROJECT_NAME + fi + # Set fast track options iniset $IRONIC_CONF_FILE deploy fast_track $IRONIC_DEPLOY_FAST_TRACK