Make swift's endpoint type configurable for gnocchi storage

It currently takes the default which is problematic for some
network isolated deployments.

Change-Id: I908b0e4f20f4b9f88a13fa52689d45946a2af27c
Closes-Bug: #1711063
This commit is contained in:
Juan Antonio Osorio Robles 2017-08-16 10:43:15 +03:00
parent 84ef6a5342
commit 159939c746
2 changed files with 11 additions and 0 deletions

View File

@ -64,6 +64,11 @@ parameters:
default: ''
description: Set to True to enable debugging Gnocchi services.
type: string
GnocchiStorageSwiftEndpointType:
default: 'internalURL'
description: Set to modify which endpoint type is gnocchi accessing swift
from.
type: string
conditions:
service_debug_unset: {equals : [{get_param: GnocchiDebug}, '']}
@ -105,6 +110,7 @@ outputs:
gnocchi::storage::swift::swift_auth_version: 3
gnocchi::storage::swift::swift_key: {get_param: GnocchiPassword}
gnocchi::storage::swift::swift_authurl: {get_param: [EndpointMap, KeystoneV3Internal, uri]}
gnocchi::storage::swift::swift_endpoint_type: {get_param: GnocchiStorageSwiftEndpointType}
gnocchi::storage::ceph::ceph_pool: {get_param: GnocchiRbdPoolName}
gnocchi::storage::ceph::ceph_username: {get_param: CephClientUserName}
gnocchi::storage::ceph::ceph_keyring:

View File

@ -0,0 +1,5 @@
---
features:
- |
This exposes the GnocchiStorageSwiftEndpointType parameter, which sets the
interface type that gnocchi will use to get the swift endpoint.