Browse Source

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
Sergey Kraynev 2 years ago
parent
commit
f87a1c41ff
2 changed files with 5 additions and 0 deletions
  1. 2
    0
      service/files/defaults.yaml
  2. 3
    0
      service/files/heat.conf.j2

+ 2
- 0
service/files/defaults.yaml View File

@@ -20,6 +20,8 @@ configs:
20 20
       # it is strongly recommended don't change this value
21 21
       user: heat_domain_admin
22 22
 
23
+    heat_endpoint_type: internalURL
24
+
23 25
     debug: false
24 26
 
25 27
 sources:

+ 3
- 0
service/files/heat.conf.j2 View File

@@ -47,6 +47,9 @@ auth_type = password
47 47
 [clients_keystone]
48 48
 auth_uri = {{ address('keystone', keystone.public_port, with_scheme=True) }}
49 49
 
50
+[clients_heat]
51
+endpoint_type = {{ heat.heat_endpoint_type }}
52
+
50 53
 [heat_api]
51 54
 bind_host = {{ network_topology["private"]["address"] }}
52 55
 bind_port = {{ heat.api_port.cont }}

Loading…
Cancel
Save