From 31475839502059587af67ae05f11414a84f9400e Mon Sep 17 00:00:00 2001 From: Alan Bishop Date: Thu, 10 May 2018 14:08:06 -0400 Subject: [PATCH] Add ability to control Glance's enabled_import_methods Add GlanceEnabledImportMethods parameter, and set the default value to restrict Glance from using its 'glance-direct' import method. The glance-direct method requires a special configuration when deployed in an HA environment, and that capability will be added in a later release. Closes-Bug: #1765439 Depends-On: https://review.openstack.org/568366 Change-Id: I7038601d7505a60df2a1fb7fd8db818efa105341 --- puppet/services/glance-api.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/puppet/services/glance-api.yaml b/puppet/services/glance-api.yaml index 56d8f6d346..a4ba764ef6 100644 --- a/puppet/services/glance-api.yaml +++ b/puppet/services/glance-api.yaml @@ -131,6 +131,12 @@ parameters: default: false description: Whether to enable or not the Rbd backend for Nova type: boolean + GlanceEnabledImportMethods: + default: 'web-download' + description: > + List of enabled Image Import Methods. Valid values in the list are + 'glance-direct' and 'web-download' + type: comma_delimited_list KeystoneRegion: type: string default: 'regionOne' @@ -237,6 +243,7 @@ outputs: glance::api::show_multiple_locations: {if: [glance_multiple_locations, true, false]} glance::api::os_region_name: {get_param: KeystoneRegion} glance::api::image_member_quota: {get_param: GlanceImageMemberQuota} + glance::api::enabled_import_methods: {get_param: GlanceEnabledImportMethods} # 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):