Add support for use-internal-endpoints

Add support for use of internal endpoints for inter-service
API calls from heat.

Change-Id: I4a9399e84f3a6ad90a935f12407b4365f35841cb
Closes-Bug: 1713923
This commit is contained in:
James Page 2017-09-05 11:52:39 +01:00
parent 436111cf03
commit bc4017ba64
6 changed files with 25 additions and 0 deletions

View File

@ -247,3 +247,10 @@ options:
description: |
Default multicast port number that will be used to communicate between
HA Cluster nodes.
use-internal-endpoints:
type: boolean
default: False
description: |
Openstack mostly defaults to using public endpoints for
internal communication between services. If set to True this option
will configure services to use internal endpoints where possible.

View File

@ -103,6 +103,7 @@ CONFIG_FILES = OrderedDict([
context.SharedDBContext(relation_prefix='heat',
ssl_dir=HEAT_DIR),
context.OSConfigFlagContext(),
context.InternalEndpointContext(),
HeatIdentityServiceContext(service=SVC, service_user=SVC),
HeatHAProxyContext(),
HeatSecurityContext(),

View File

@ -85,3 +85,8 @@ bind_port={{ api_cfn_listen_port }}
bind_port=8000
{% endif %}
workers = {{ workers }}
{% if use_internal_endpoints -%}
[clients]
endpoint_type = internalURL
{%- endif %}

View File

@ -62,3 +62,7 @@ workers = {{ workers }}
{% include "section-rabbitmq-oslo" %}
{% if use_internal_endpoints -%}
[clients]
endpoint_type = internalURL
{%- endif %}

View File

@ -75,3 +75,7 @@ workers = {{ workers }}
{% include "section-rabbitmq-oslo" %}
{% if use_internal_endpoints -%}
[clients]
endpoint_type = internalURL
{%- endif %}

View File

@ -66,3 +66,7 @@ workers = {{ workers }}
{% include "section-rabbitmq-oslo" %}
{% if use_internal_endpoints -%}
[clients]
endpoint_type = internalURL
{%- endif %}