Add possibility to use different flavors for different nodes types
PRODX-2628

Change-Id: If562185442fbdceec120a88228a7fa9253336067
diff --git a/de/heat-templates/top.yaml b/de/heat-templates/top.yaml
index 30736be..4595008 100644
--- a/de/heat-templates/top.yaml
+++ b/de/heat-templates/top.yaml
@@ -7,9 +7,6 @@
   image:
     type: string
     description: Name of image to use for servers
-  flavor:
-    type: string
-    description: Flavor to use for servers
   public_net_id:
     type: string
     description: >
@@ -62,6 +59,27 @@
   osd_metadata:
     type: json
     default: {}
+  ucp_flavor:
+    type: string
+    default: 'system.compact.openstack.control'
+  masters_flavor:
+    type: string
+    default: 'system.compact.openstack.control'
+  workers_flavor:
+    type: string
+    default: 'system.compact.openstack.control'
+  cmps_flavor:
+    type: string
+    default: 'system.compact.openstack.control'
+  gtws_flavor:
+    type: string
+    default: 'system.compact.openstack.control'
+  lmas_flavor:
+    type: string
+    default: 'system.compact.openstack.control'
+  osds_flavor:
+    type: string
+    default: 'system.compact.openstack.control'
 
 resources:
   key_pair:
@@ -109,7 +127,7 @@
     type: ./srv-group.yaml
     properties:
       image: { get_param: image }
-      flavor: { get_param: flavor }
+      flavor: { get_param: ucp_flavor }
       key_name: { get_param: "OS::stack_name" }
       public_net_id: { get_param: public_net_id }
       private_net_id: { get_resource: network }
@@ -129,7 +147,7 @@
         type: ./srv-group.yaml
         properties:
           image: { get_param: image }
-          flavor: { get_param: flavor }
+          flavor: { get_param: masters_flavor }
           key_name: { get_param: "OS::stack_name" }
           public_net_id: { get_param: public_net_id }
           private_net_id: { get_resource: network }
@@ -150,7 +168,7 @@
         type: ./srv-group.yaml
         properties:
           image: { get_param: image }
-          flavor: { get_param: flavor }
+          flavor: { get_param: workers_flavor }
           key_name: { get_param: "OS::stack_name" }
           public_net_id: { get_param: public_net_id }
           private_net_id: { get_resource: network }
@@ -171,7 +189,7 @@
         type: ./srv-group.yaml
         properties:
           image: { get_param: image }
-          flavor: { get_param: flavor }
+          flavor: { get_param: cmps_flavor }
           key_name: { get_param: "OS::stack_name" }
           public_net_id: { get_param: public_net_id }
           private_net_id: { get_resource: network }
@@ -192,7 +210,7 @@
         type: ./srv-group.yaml
         properties:
           image: { get_param: image }
-          flavor: { get_param: flavor }
+          flavor: { get_param: gtws_flavor }
           key_name: { get_param: "OS::stack_name" }
           public_net_id: { get_param: public_net_id }
           private_net_id: { get_resource: network }
@@ -213,7 +231,7 @@
         type: ./srv-group.yaml
         properties:
           image: { get_param: image }
-          flavor: { get_param: flavor }
+          flavor: { get_param: lmas_flavor }
           key_name: { get_param: "OS::stack_name" }
           public_net_id: { get_param: public_net_id }
           private_net_id: { get_resource: network }
@@ -234,7 +252,7 @@
         type: ./srv-group.yaml
         properties:
           image: { get_param: image }
-          flavor: { get_param: flavor }
+          flavor: { get_param: osds_flavor }
           key_name: { get_param: "OS::stack_name" }
           public_net_id: { get_param: public_net_id }
           private_net_id: { get_resource: network }