From f87a1c41ff2ad3cd5620cf95c7122c548b459d78 Mon Sep 17 00:00:00 2001 From: Sergey Kraynev Date: Thu, 1 Dec 2016 10:26:40 +0000 Subject: [PATCH] Add configurable endpoint type for heatclient Default value for endpoint_type for all clients is internalUrl, which makes all management requests hidden from outside world. However there are some case when we need to expose some requests and use publicURL endpoint for heatclient. This patch add ability to pass such option in Heat service config. Change-Id: I2b2b5375f0db7c33bbf45ddb202045edde2aad3a --- service/files/defaults.yaml | 2 ++ service/files/heat.conf.j2 | 3 +++ 2 files changed, 5 insertions(+) diff --git a/service/files/defaults.yaml b/service/files/defaults.yaml index 3332e55..cb977ac 100644 --- a/service/files/defaults.yaml +++ b/service/files/defaults.yaml @@ -20,6 +20,8 @@ configs: # it is strongly recommended don't change this value user: heat_domain_admin + heat_endpoint_type: internalURL + debug: false sources: diff --git a/service/files/heat.conf.j2 b/service/files/heat.conf.j2 index 53e4ef5..a7722ec 100644 --- a/service/files/heat.conf.j2 +++ b/service/files/heat.conf.j2 @@ -47,6 +47,9 @@ auth_type = password [clients_keystone] auth_uri = {{ address('keystone', keystone.public_port, with_scheme=True) }} +[clients_heat] +endpoint_type = {{ heat.heat_endpoint_type }} + [heat_api] bind_host = {{ network_topology["private"]["address"] }} bind_port = {{ heat.api_port.cont }}