[sdc] docker file fix for cassandra
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / heat / nested / resourceGroupInvalid / inputs / mvs.vfmodule.heat.yaml
1 heat_template_version: 2013-05-23
2
3 description: >
4   Metaswitch MVS (Metaview Server)
5
6 parameters:
7   cloud_zone_id:
8     type: string
9     description: The cloud zone for this VF instance
10   index_parameter:
11     type: string
12   vf_name:
13     type: string
14     description: The VF Name; defaults to VMVM for the virtual MVM VNF.
15     constraints:
16       - allowed_pattern: "[a-zA-Z0-9]+"
17       - length: { min: 4, max: 4 }
18         description: Each VF will have a 4-character alphanumeric identifier
19   vf_instance_num:
20     type: string
21     description: The number for this VF instance
22     constraints:
23       - allowed_pattern: "[0-9]+"
24       - length: { min: 2, max: 2 }
25         description: VF instance number must be a two-digit numeric value
26   vf_component:
27     type: string
28     description: The component that this VF instance is running
29     constraints:
30       - allowed_pattern: "[a-zA-Z0-9]+"
31       - length: { min: 3, max: 3 }
32         description: Each VF component will have a 3-character alphanumeric identifier
33   vm_instance_num:
34     type: comma_delimited_list
35     description: VM instance number list must be a list of three-digit numeric value
36   vnf_id:
37     type: string
38     description: Unique ID for this VF instance
39   vf_module_id:
40     type: string
41     description: Unique ID for this VF_MODULE instance
42   bootimage:
43     type: string
44     description: Master bootimage volume id
45   flavor:
46     type: string
47     description: Server flavor
48     constraints:
49       - custom_constraint: nova.flavor
50   key_name:
51     type: string
52     description: SSH key name
53     constraints:
54       - custom_constraint: nova.keypair
55   type_name:
56     type: string
57   availability_zone_0:
58     type: comma_delimited_list
59     description: List of Availability Zone IDs or Names
60
61   sec_groups:
62     type: comma_delimited_list
63     description: Security groups
64   mgmt_net_id:
65     type: string
66     description: Neutron UUID for the Management network
67     constraints:
68     - custom_constraint: neutron.network
69   virtual_mgmt_ip_0:
70     type: string
71     description: Virtual management network ip address
72
73   mvs_mgmt_ip_0:
74     type: comma_delimited_list
75     description: List of Management network IP addresses for IPv4
76
77   num_instances:
78     type: number
79     description: number of instance of the VF_module
80
81   compute_image_name:
82     type: string
83
84 resources:
85   mvs_modules:
86     type: OS::Heat::ResourceGroup
87     properties:
88       count: 3
89       index_var: { get_param: index_parameter }
90       resource_def:
91         type: mvs.nested.heat.yaml
92         properties:
93           cloud_zone_id: { get_param: cloud_zone_id }
94           vf_name:  { get_param: vf_name }
95           vf_instance_num: { get_param: vf_instance_num }
96           vf_component: { get_param: vf_component }
97           vm_instance_num: { get_param: vm_instance_num }
98           vnf_id: { get_param: vnf_id }
99           vf_module_id: { get_param: vf_module_id }
100           bootimage: { get_param: bootimage }
101           flavor: { get_param: flavor }
102           key_name: { get_param: key_name }
103           availability_zone_0: { get_param: availability_zone_0 }
104           sec_groups: { get_param: sec_groups }
105           mgmt_net_id: { get_param: mgmt_net_id }
106           virtual_mgmt_ip_0: { get_param: virtual_mgmt_ip_0 }
107           mvs_mgmt_ip_0: { get_param: mvs_mgmt_ip_0 }
108           indx: "%index%"
109
110   not_supported_resourceGroup1:
111     type: OS::Heat::ResourceGroup
112     properties:
113       count: 3
114       resource_def:
115         type: OS::Heat::ResourceGroup
116         properties:
117           cloud_zone_id: { get_param: cloud_zone_id }
118           vf_name:  { get_param: vf_name }
119           vf_instance_num: { get_param: vf_instance_num }
120           vf_component: { get_param: vf_component }
121           vm_instance_num: { get_param: vm_instance_num }
122           vnf_id: { get_param: vnf_id }
123           vf_module_id: { get_param: vf_module_id }
124           bootimage: { get_param: bootimage }
125           flavor: { get_param: flavor }
126           key_name: { get_param: key_name }
127           availability_zone_0: { get_param: availability_zone_0 }
128           sec_groups: { get_param: sec_groups }
129           mgmt_net_id: { get_param: mgmt_net_id }
130           virtual_mgmt_ip_0: { get_param: virtual_mgmt_ip_0 }
131           mvs_mgmt_ip_0: { get_param: mvs_mgmt_ip_0 }
132           indx: "%index%"
133
134   not_supported_resourceGroup2:
135     type: OS::Heat::ResourceGroup
136     properties:
137       count: 3
138       resource_def:
139         type: { get_param: type_name }
140         properties:
141           cloud_zone_id: { get_param: cloud_zone_id }
142           vf_name:  { get_param: vf_name }
143           vf_instance_num: { get_param: vf_instance_num }
144           vf_component: { get_param: vf_component }
145           vm_instance_num: { get_param: vm_instance_num }
146           vnf_id: { get_param: vnf_id }
147           vf_module_id: { get_param: vf_module_id }
148           bootimage: { get_param: bootimage }
149           flavor: { get_param: flavor }
150           key_name: { get_param: key_name }
151           availability_zone_0: { get_param: availability_zone_0 }
152           sec_groups: { get_param: sec_groups }
153           mgmt_net_id: { get_param: mgmt_net_id }
154           virtual_mgmt_ip_0: { get_param: virtual_mgmt_ip_0 }
155           mvs_mgmt_ip_0: { get_param: mvs_mgmt_ip_0 }
156           indx: "%index%"
157
158   server_compute_get_attr_test:
159     type: OS::Nova::Server
160     properties:
161       config_drive: {get_attr: [mvs_modules]}
162       name:  compute_name
163       image: { get_param: compute_image_name }
164       flavor:  compute_flavor_name
165       user_data_format: { get_attr: [mvs_modules , resource.1.vnfci_id_1] }
166       user_data: { get_attr: [mvs_modules, resource.vnfci_id_2]}