Enable image inject metadata properties & user roles to be ignored

Adding GlanceInjectMetadataProperties & GlanceIgnoreUserRoles to
inject metadata properties to the image with specific user roles
to be ignored for injecting metadata properties in the image.

Depends-on: I02482dff7b1412d6254ce82d80257ce26c23430d
Change-Id: Ie6504f73fd5f7492389d6c55a89c66b8ca568ef7
This commit is contained in:
Pranali Deore 2018-12-19 15:18:16 +05:30
parent 182ecdaa86
commit ae8998f36a
2 changed files with 17 additions and 0 deletions

View File

@ -116,6 +116,14 @@ parameters:
default: 'raw'
description: Desired output format for image conversion plugin.
type: string
GlanceInjectMetadataProperties:
default: ''
description: Metadata properties to be injected in image.
type: comma_delimited_list
GlanceIgnoreUserRoles:
default: 'admin'
description: List of user roles to be ignored for injecting image metadata properties.
type: comma_delimited_list
GlanceEnabledImportMethods:
default: 'web-download'
description: >
@ -310,6 +318,8 @@ outputs:
glance::api::node_staging_uri: {get_param: GlanceNodeStagingUri}
glance::api::image_import_plugins: {get_param: GlanceImageImportPlugins}
glance::api::image_conversion_output_format: {get_param: GlanceImageConversionOutputFormat}
glance::api::inject_metadata_properties: {get_param: GlanceInjectMetadataProperties}
glance::api::ignore_user_roles: {get_param: GlanceIgnoreUserRoles}
# NOTE: bind IP is found in hiera replacing the network name with the
# local node IP for the given network; replacement examples
# (eg. for internal_api):

View File

@ -0,0 +1,7 @@
---
features:
- |
Add new parameter 'GlanceInjectMetadataProperties', to add metadata
properties to be injected in image.
Add new parameter 'GlanceIgnoreUserRoles', to specify name of user
roles to be ignored for injecting metadata properties in the image.