Zaqar: Match service name with service-net-map
[apex-tripleo-heat-templates.git] / deployed-server / ctlplane-port.yaml
index eb10fba..8cd22ca 100644 (file)
@@ -1,8 +1,14 @@
-heat_template_version: 2014-10-16
+heat_template_version: pike
 
 parameters:
-  Hostname:
+  network:
     type: string
+    default: ctlplane
+  name:
+    type: string
+  replacement_policy:
+    type: string
+    default: AUTO
 
 resources:
 
@@ -13,11 +19,10 @@ resources:
       name:
         list_join:
           - '-'
-          - - {get_param: Hostname}
-            - ctlplane
+          - - {get_param: name}
             - port
       replacement_policy: AUTO
 
 outputs:
-  ip_address:
-    value: {get_attr: [ControlPlanePort, fixed_ips, 0, ip_address]}
+  fixed_ips:
+    value: {get_attr: [ControlPlanePort, fixed_ips]}