Allow keystone endpoint_type interpolation for Heat clients

 - Add 'endpoint_type_default' identity parameter to access
   internal services, default 'internalURL'
 - Add 'endpoint_type_heat' identity parameter so Heat could
   provide it to external clients, default 'publicURL'

Change-Id: Iff99c7b79634c65605e8509cfe919bc47ff1a787
diff --git a/metadata/service/server/cluster.yml b/metadata/service/server/cluster.yml
index 1fd1cb5..a919431 100644
--- a/metadata/service/server/cluster.yml
+++ b/metadata/service/server/cluster.yml
@@ -3,6 +3,9 @@
 classes:
 - service.heat.support
 parameters:
+  _param:
+    heat_client_default_endpoint_type: internalURL
+    heat_client_heat_endpoint_type: publicURL
   heat:
     server:
       stack_domain_admin:
@@ -42,6 +45,8 @@
         tenant: service
         user: heat
         password: ${_param:keystone_heat_password}
+        endpoint_type_default: ${_param:heat_client_default_endpoint_type}
+        endpoint_type_heat: ${_param:heat_client_heat_endpoint_type}
       message_queue:
         engine: rabbitmq
         host: ${_param:cluster_vip_address}