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
This commit is contained in:
Alan Bishop 2018-05-10 14:08:06 -04:00
parent 7f23133651
commit 3147583950

View File

@ -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):