cbaf2ce680e8b046da1cffd721dd42cfc9f45a78
[sdc.git] /
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
4 imports:
5 - openecomp_heat_index:
6     file: openecomp-heat/_index.yml
7 node_types:
8   org.openecomp.resource.vfc.nodes.heat.cmaui:
9     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
10 topology_template:
11   inputs:
12     cmaui_names:
13       hidden: false
14       immutable: false
15       annotations:
16         source:
17           type: org.openecomp.annotations.Source
18           properties:
19             vf_module_label:
20             - addOn
21             source_type: HEAT
22             param_name: cmaui_names
23       type: list
24       description: CMAUI1, CMAUI2 server names
25       entry_schema:
26         type: string
27     p1:
28       hidden: false
29       immutable: false
30       annotations:
31         source:
32           type: org.openecomp.annotations.Source
33           properties:
34             vf_module_label:
35             - addOn
36             source_type: HEAT
37             param_name: p1
38       type: string
39       description: UID of OAM network
40     template_PortTuple_LB1:
41       hidden: false
42       immutable: false
43       annotations:
44         source:
45           type: org.openecomp.annotations.Source
46           properties:
47             vf_module_label:
48             - addOn
49             source_type: HEAT
50             param_name: template_PortTuple_LB1
51       type: string
52     oam_sec_group_name:
53       hidden: false
54       immutable: false
55       annotations:
56         source:
57           type: org.openecomp.annotations.Source
58           properties:
59             vf_module_label:
60             - addOn
61             source_type: HEAT
62             param_name: oam_sec_group_name
63       type: string
64     lb_st_interface_type_oam:
65       hidden: false
66       immutable: false
67       annotations:
68         source:
69           type: org.openecomp.annotations.Source
70           properties:
71             vf_module_label:
72             - addOn
73             source_type: HEAT
74             param_name: lb_st_interface_type_oam
75       type: string
76     security_group_name:
77       hidden: false
78       immutable: false
79       annotations:
80         source:
81           type: org.openecomp.annotations.Source
82           properties:
83             vf_module_label:
84             - addOn
85             source_type: HEAT
86             param_name: security_group_name
87       type: list
88       description: CMAUI1, CMAUI2 server names
89       entry_schema:
90         type: string
91     shared_network_id:
92       hidden: false
93       immutable: false
94       annotations:
95         source:
96           type: org.openecomp.annotations.Source
97           properties:
98             vf_module_label:
99             - addOn
100             source_type: HEAT
101             param_name: shared_network_id
102       type: string
103       description: Flavor for CMAUI server
104     jsa_net_name:
105       hidden: false
106       immutable: false
107       annotations:
108         source:
109           type: org.openecomp.annotations.Source
110           properties:
111             vf_module_label:
112             - main
113             source_type: HEAT
114             param_name: jsa_net_name
115       type: string
116       description: network name of jsa log network
117     shared_network_id1:
118       hidden: false
119       immutable: false
120       annotations:
121         source:
122           type: org.openecomp.annotations.Source
123           properties:
124             vf_module_label:
125             - addOn
126             source_type: HEAT
127             param_name: shared_network_id1
128       type: string
129       description: Flavor for CMAUI server
130     cmaui_image:
131       hidden: false
132       immutable: false
133       annotations:
134         source:
135           type: org.openecomp.annotations.Source
136           properties:
137             vf_module_label:
138             - addOn
139             source_type: HEAT
140             param_name: cmaui_image
141       type: string
142       description: Image for CMAUI server
143     cmaui_flavor:
144       hidden: false
145       immutable: false
146       annotations:
147         source:
148           type: org.openecomp.annotations.Source
149           properties:
150             vf_module_label:
151             - addOn
152             source_type: HEAT
153             param_name: cmaui_flavor
154       type: string
155       description: Flavor for CMAUI server
156     shared_network_id2:
157       hidden: false
158       immutable: false
159       annotations:
160         source:
161           type: org.openecomp.annotations.Source
162           properties:
163             vf_module_label:
164             - addOn
165             source_type: HEAT
166             param_name: shared_network_id2
167       type: list
168       description: Flavor for CMAUI server
169       entry_schema:
170         type: string
171     availability_zone_0:
172       label: availabilityzone name
173       hidden: false
174       immutable: false
175       annotations:
176         source:
177           type: org.openecomp.annotations.Source
178           properties:
179             vf_module_label:
180             - addOn
181             source_type: HEAT
182             param_name: availability_zone_0
183       type: string
184       description: availabilityzone name
185     cmaui_oam_ips:
186       hidden: false
187       immutable: false
188       annotations:
189         source:
190           type: org.openecomp.annotations.Source
191           properties:
192             vf_module_label:
193             - addOn
194             source_type: HEAT
195             param_name: cmaui_oam_ips
196       type: string
197   node_templates:
198     template_VMInt_OAM_lb_1:
199       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
200       properties:
201         security_group_refs:
202         - get_input: oam_sec_group_name
203         virtual_network_refs:
204         - get_input: shared_network_id
205         virtual_machine_interface_properties:
206           service_interface_type:
207             get_input: lb_st_interface_type_oam
208         port_tuple_refs:
209         - get_input: template_PortTuple_LB1
210       requirements:
211       - link:
212           capability: tosca.capabilities.network.Linkable
213           node: test_net
214           relationship: tosca.relationships.network.LinksTo
215       - binding:
216           capability: tosca.capabilities.network.Bindable
217           node: server_cmaui
218           relationship: tosca.relationships.network.BindsTo
219     template_VMInt_OAM_lb_2:
220       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
221       properties:
222         security_group_refs:
223         - get_input: oam_sec_group_name
224         virtual_network_refs:
225         - get_input: shared_network_id
226         - get_input: shared_network_id1
227         virtual_machine_interface_properties:
228           service_interface_type:
229             get_input: lb_st_interface_type_oam
230         port_tuple_refs:
231         - get_input: template_PortTuple_LB1
232       requirements:
233       - link:
234           capability: tosca.capabilities.network.Linkable
235           node: test_net
236           relationship: tosca.relationships.network.LinksTo
237       - binding:
238           capability: tosca.capabilities.network.Bindable
239           node: server_cmaui
240           relationship: tosca.relationships.network.BindsTo
241     template_VMInt_OAM_lb_3:
242       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
243       properties:
244         security_group_refs:
245         - get_input: oam_sec_group_name
246         virtual_network_refs:
247         - get_input:
248           - shared_network_id2
249           - 0
250         virtual_machine_interface_properties:
251           service_interface_type:
252             get_input: lb_st_interface_type_oam
253         port_tuple_refs:
254         - get_input: template_PortTuple_LB1
255     test_net1:
256       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
257       properties:
258         shared: true
259         network_name:
260           get_input: jsa_net_name
261     server_cmaui:
262       type: org.openecomp.resource.vfc.nodes.heat.cmaui
263       properties:
264         flavor:
265           get_input: cmaui_flavor
266         availability_zone:
267           get_input: availability_zone_0
268         image:
269           get_input: cmaui_image
270         contrail_service_instance_ind: true
271         name:
272           get_input:
273           - cmaui_names
274           - 0
275     test_net:
276       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
277       properties:
278         shared: true
279         network_name:
280           get_input: jsa_net_name
281   groups:
282     main_group:
283       type: org.openecomp.groups.heat.HeatStack
284       properties:
285         heat_file: ../Artifacts/main.yml
286         description: |
287           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
288       members:
289       - test_net1
290       - test_net
291     addOn_group:
292       type: org.openecomp.groups.heat.HeatStack
293       properties:
294         heat_file: ../Artifacts/addOn.yml
295         description: cmaui server template for vMMSC
296       members:
297       - template_VMInt_OAM_lb_1
298       - template_VMInt_OAM_lb_2
299       - template_VMInt_OAM_lb_3
300       - server_cmaui