Merge "Allow customizing policy rules for Placement Api"

This commit is contained in:
Zuul 2021-08-24 00:53:54 +00:00 committed by Gerrit Code Review
commit f994b401d2
2 changed files with 11 additions and 0 deletions

View File

@ -80,6 +80,12 @@ parameters:
default: false
description: Set to True to enable debugging Placement services.
type: boolean
PlacementPolicies:
description: |
A hash of policies to configure for Placement API.
e.g. { nova-context_is_admin: { key: context_is_admin, value: 'role:admin' } }
default: {}
type: json
conditions:
placement_workers_set:
@ -143,6 +149,7 @@ outputs:
- {get_param: PlacementDebug}
- true
- {get_param: Debug}
placement::policy::policies: {get_param: PlacementPolicies}
placement::wsgi::apache::api_port: '8778'
placement::wsgi::apache::ssl: {get_param: EnableInternalTLS}
# NOTE: bind IP is found in hiera replacing the network name with the local node IP

View File

@ -0,0 +1,4 @@
---
features:
- |
The new ``PlacementPolicies`` parameter has been added.