Add all isolated networks to all nodes.
[apex-tripleo-heat-templates.git] / network / endpoints / endpoint.yaml
index 8ffd6c4..6246cfd 100644 (file)
@@ -19,6 +19,10 @@ parameters:
     type: string
     default: ''
     description: A suffix attached to the URL
+  CloudName:
+    type: string
+    default: ''
+    description: The DNS name of this cloud. E.g. ci-overcloud.tripleo.org
 
 outputs:
   endpoint:
@@ -28,10 +32,11 @@ outputs:
     value:
       port: {get_param: [EndpointMap, {get_param: EndpointName }, port] }
       protocol: {get_param: [EndpointMap, {get_param: EndpointName }, protocol] }
+      ip: {get_param: IP}
       host:
         str_replace:
           template: {get_param: [EndpointMap, {get_param: EndpointName }, host]}
-          params: {IP_ADDRESS: {get_param: IP} }
+          params: {IP_ADDRESS: {get_param: IP}, CLOUDNAME: {get_param: CloudName}}
       uri:
         list_join:
           - ''
@@ -39,7 +44,7 @@ outputs:
             - '://'
             - str_replace:
                 template: {get_param: [EndpointMap, {get_param: EndpointName }, host]}
-                params: {IP_ADDRESS: {get_param: IP} }
+                params: {IP_ADDRESS: {get_param: IP}, CLOUDNAME: {get_param: CloudName }}
             - ':'
             - {get_param: [EndpointMap, {get_param: EndpointName }, port] }
             - {get_param: UriSuffix }
@@ -50,6 +55,6 @@ outputs:
             - '://'
             - str_replace:
                 template: {get_param: [EndpointMap, {get_param: EndpointName }, host]}
-                params: {IP_ADDRESS: {get_param: IP} }
+                params: {IP_ADDRESS: {get_param: IP}, CLOUDNAME: {get_param: CloudName} }
             - ':'
             - {get_param: [EndpointMap, {get_param: EndpointName }, port] }