Add endpoint type parameter

To get ability to change swift endpoint type, this parameter
was added.

Upstream Change-Id: I25ce5d9d119804f1aca5b5567be46750050ebacd
Change-Id: I356b5d95ec2242722dbcf9ec1fc1cb7be65db867
Closes-bug: #1454364
This commit is contained in:
Stanislaw Bogatkin 2015-05-13 18:30:26 +03:00
parent cd260401db
commit 915e996fc2
1 changed files with 6 additions and 1 deletions

View File

@ -15,6 +15,8 @@
# $swift_store_create_container_on_put - Optional. Default: 'False'
#
# $swift_store_large_object_size - Optional. Default: '5120'
#
# $swift_store_endpoint_type - Optional. Default: 'internalURL'
class glance::backend::swift(
$swift_store_user,
$swift_store_key,
@ -22,7 +24,8 @@ class glance::backend::swift(
$swift_store_container = 'glance',
$swift_store_auth_version = '2',
$swift_store_large_object_size = '5120',
$swift_store_create_container_on_put = false
$swift_store_create_container_on_put = false,
$swift_store_endpoint_type = 'internalURL'
) {
glance_api_config {
@ -36,6 +39,8 @@ class glance::backend::swift(
value => $swift_store_create_container_on_put;
'glance_store/swift_store_large_object_size':
value => $swift_store_large_object_size;
'glance_store/swift_store_endpoint_type':
value => $swift_store_endpoint_type;
}
glance_cache_config {