Support using internal network for clients

Openstack mostly defaults to using public endpoints for
internal communication between services. This patch adds
a new option use-internal-endpoints which, if set to True,
will configure services to use internal endpoints where
possible.

Closes-Bug: 1456876
Change-Id: I0f13fa1ab66864859d3adb37e5ec64bd95d7025d
This commit is contained in:
Edward Hope-Morley
2016-03-24 16:06:31 +00:00
parent 775ed03ac0
commit 24514dcd5b
8 changed files with 33 additions and 9 deletions

View File

@@ -163,7 +163,7 @@ admin_user = {{ admin_user }}
admin_password = {{ admin_password }}
{% endif -%}
{% include "parts/cinder" %}
{% include "parts/section-cinder" %}
[osapi_v3]
enabled=True

View File

@@ -148,7 +148,7 @@ admin_auth_url = {{ auth_protocol }}://{{ auth_host }}:{{ auth_port }}/v2.0
{% include "section-keystone-authtoken-legacy" %}
{% include "parts/cinder" %}
{% include "parts/section-cinder" %}
[osapi_v3]
enabled=True

View File

@@ -146,7 +146,7 @@ auth_plugin = password
{% include "section-keystone-authtoken" %}
{% include "parts/cinder" %}
{% include "parts/section-cinder" %}
[osapi_v3]
enabled=True

View File

@@ -1,5 +0,0 @@
{% if volume_service and volume_service == 'cinder' -%}
[cinder]
os_region_name = {{ region }}
{% endif -%}

View File

@@ -0,0 +1,9 @@
{% if volume_service and volume_service == 'cinder' -%}
[cinder]
{% if use_internal_endpoints -%}
catalog_info = volumev2:cinderv2:internalURL
{% endif %}
{% if region -%}
os_region_name = {{ region }}
{% endif %}
{% endif -%}