DCN: use FQDN in glance endpoint with internal TLS
Fix the glance-api endpoint used by cinder and nova services at DCN sites. When internal TLS is enabled, the URI must use a FQDN and not an IP address. Closes-Bug: #1893453 Change-Id: I386a035f9688c54d617e714888c9c0fa14f34a1e
This commit is contained in:
@@ -55,15 +55,17 @@ outputs:
|
||||
glance_api_edge_uri:
|
||||
description: URI of the glance-api service runing at the edge site.
|
||||
value: &glance_api_edge_uri
|
||||
str_replace:
|
||||
template:
|
||||
"PROTOCOL://%{hiera('NETWORK_uri')}:9292"
|
||||
params:
|
||||
PROTOCOL:
|
||||
if:
|
||||
- internal_tls_enabled
|
||||
- https
|
||||
- http
|
||||
- str_replace:
|
||||
template:
|
||||
"https://%{hiera('fqdn_NETWORK')}:9292"
|
||||
params:
|
||||
NETWORK: {get_param: [ServiceNetMap, GlanceApiEdgeNetwork]}
|
||||
- str_replace:
|
||||
template:
|
||||
"http://%{hiera('NETWORK_uri')}:9292"
|
||||
params:
|
||||
NETWORK: {get_param: [ServiceNetMap, GlanceApiEdgeNetwork]}
|
||||
|
||||
role_data:
|
||||
|
||||
@@ -61,15 +61,17 @@ outputs:
|
||||
glance_api_edge_uri:
|
||||
description: URI of the glance-api service runing at the edge site.
|
||||
value: &glance_api_edge_uri
|
||||
str_replace:
|
||||
template:
|
||||
"PROTOCOL://%{hiera('NETWORK_uri')}:9292"
|
||||
params:
|
||||
PROTOCOL:
|
||||
if:
|
||||
- internal_tls_enabled
|
||||
- https
|
||||
- http
|
||||
- str_replace:
|
||||
template:
|
||||
"https://%{hiera('fqdn_NETWORK')}:9292"
|
||||
params:
|
||||
NETWORK: {get_param: [ServiceNetMap, GlanceApiEdgeNetwork]}
|
||||
- str_replace:
|
||||
template:
|
||||
"http://%{hiera('NETWORK_uri')}:9292"
|
||||
params:
|
||||
NETWORK: {get_param: [ServiceNetMap, GlanceApiEdgeNetwork]}
|
||||
|
||||
role_data:
|
||||
|
||||
Reference in New Issue
Block a user