c906988f381ffd189619da853fe705d2659160dd
[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 - GlobalSubstitutionTypes:
8     file: GlobalSubstitutionTypesServiceTemplate.yaml
9 topology_template:
10   inputs:
11     oam_net_ips:
12       label: OAM network ips
13       hidden: false
14       immutable: false
15       annotations:
16         source:
17           type: org.openecomp.annotations.Source
18           properties:
19             vf_module_label:
20             - hot-nimbus-pcm_v0.4
21             source_type: HEAT
22             param_name: oam_net_ips
23       type: list
24       description: OAM network ips
25       default:
26       - 107.239.64.121
27       entry_schema:
28         type: string
29     availabilityzone_name:
30       label: availabilityzone name
31       hidden: false
32       immutable: false
33       annotations:
34         source:
35           type: org.openecomp.annotations.Source
36           properties:
37             vf_module_label:
38             - hot-nimbus-pcm_v0.4
39             source_type: HEAT
40             param_name: availabilityzone_name
41       type: string
42       description: availabilityzone name
43       default: nova
44     oam_net_gw:
45       label: CPS network gateway
46       hidden: false
47       immutable: false
48       annotations:
49         source:
50           type: org.openecomp.annotations.Source
51           properties:
52             vf_module_label:
53             - hot-nimbus-pcm_v0.4
54             source_type: HEAT
55             param_name: oam_net_gw
56       type: string
57       description: CPS network gateway
58       default: 107.239.64.1
59     pcm_server_names:
60       label: PCRF CM server names
61       hidden: false
62       immutable: false
63       annotations:
64         source:
65           type: org.openecomp.annotations.Source
66           properties:
67             vf_module_label:
68             - hot-nimbus-pcm_v0.4
69             source_type: HEAT
70             param_name: pcm_server_names
71       type: list
72       description: name of the PCRF CM instance
73       default:
74       - ZRDM1PCRF01PCM001
75       entry_schema:
76         type: string
77     pcm_image_name:
78       label: PCRF CM image name
79       hidden: false
80       immutable: false
81       annotations:
82         source:
83           type: org.openecomp.annotations.Source
84           properties:
85             vf_module_label:
86             - hot-nimbus-pcm_v0.4
87             source_type: HEAT
88             param_name: pcm_image_name
89       type: string
90       description: PCRF CM image name
91       default: rhel2
92     cps_net_ips:
93       label: CPS network ips
94       hidden: false
95       immutable: false
96       annotations:
97         source:
98           type: org.openecomp.annotations.Source
99           properties:
100             vf_module_label:
101             - hot-nimbus-pcm_v0.4
102             source_type: HEAT
103             param_name: cps_net_ips
104       type: list
105       description: CPS network ips
106       default:
107       - 172.26.16.113
108       entry_schema:
109         type: string
110     oam_flavor_name:
111       label: PCRF CM flavor name
112       hidden: false
113       immutable: false
114       annotations:
115         source:
116           type: org.openecomp.annotations.Source
117           properties:
118             vf_module_label:
119             - hot-nimbus-pcm_v0.4
120             source_type: HEAT
121             param_name: oam_flavor_name
122       type: string
123       description: flavor name of PCRF CM instance
124       default: cps
125     security_group_name:
126       label: security group name
127       hidden: false
128       immutable: false
129       annotations:
130         source:
131           type: org.openecomp.annotations.Source
132           properties:
133             vf_module_label:
134             - hot-nimbus-pcm_v0.4
135             source_type: HEAT
136             param_name: security_group_name
137       type: string
138       description: the name of security group
139       default: nimbus_security_group
140     pcm_volumes:
141       label: CPS Cluman Cinder Volume
142       hidden: false
143       immutable: false
144       annotations:
145         source:
146           type: org.openecomp.annotations.Source
147           properties:
148             vf_module_label:
149             - hot-nimbus-pcm_v0.4
150             source_type: HEAT
151             param_name: pcm_volumes
152       type: list
153       description: CPS Cluman Cinder Volume
154       default:
155       - 249cb355-8fdf-4382-9c3c-a2ebe767d45b
156       entry_schema:
157         type: string
158     compute_image_name:
159       hidden: false
160       immutable: false
161       annotations:
162         source:
163           type: org.openecomp.annotations.Source
164           properties:
165             vf_module_label:
166             - hot-nimbus-pcm_v0.4
167             source_type: HEAT
168             param_name: compute_image_name
169       type: string
170     pcm_flavor_name:
171       label: PCRF CM flavor name
172       hidden: false
173       immutable: false
174       annotations:
175         source:
176           type: org.openecomp.annotations.Source
177           properties:
178             vf_module_label:
179             - hot-nimbus-pcm_v0.4
180             source_type: HEAT
181             param_name: pcm_flavor_name
182       type: string
183       description: flavor name of PCRF CM instance
184       default: cps
185     net_name:
186       hidden: false
187       immutable: false
188       annotations:
189         source:
190           type: org.openecomp.annotations.Source
191           properties:
192             vf_module_label:
193             - hot-nimbus-pcm_v0.4
194             source_type: HEAT
195             param_name: net_name
196       type: string
197     oam_image_name:
198       label: PCRF CM image name
199       hidden: false
200       immutable: false
201       annotations:
202         source:
203           type: org.openecomp.annotations.Source
204           properties:
205             vf_module_label:
206             - hot-nimbus-pcm_v0.4
207             source_type: HEAT
208             param_name: oam_image_name
209       type: string
210       description: PCRF CM image name
211       default: rhel2
212     oam_server_names:
213       label: PCRF CM server names
214       hidden: false
215       immutable: false
216       annotations:
217         source:
218           type: org.openecomp.annotations.Source
219           properties:
220             vf_module_label:
221             - hot-nimbus-pcm_v0.4
222             source_type: HEAT
223             param_name: oam_server_names
224       type: list
225       description: name of the PCRF CM instance
226       default:
227       - ZRDM1PCRF01PCM001
228       entry_schema:
229         type: string
230     cps_net_name:
231       label: CPS network name
232       hidden: false
233       immutable: false
234       annotations:
235         source:
236           type: org.openecomp.annotations.Source
237           properties:
238             vf_module_label:
239             - hot-nimbus-pcm_v0.4
240             source_type: HEAT
241             param_name: cps_net_name
242       type: string
243       description: CPS network name
244       default: int_pcrf_net_0
245     cps_net_mask:
246       label: CPS network mask
247       hidden: false
248       immutable: false
249       annotations:
250         source:
251           type: org.openecomp.annotations.Source
252           properties:
253             vf_module_label:
254             - hot-nimbus-pcm_v0.4
255             source_type: HEAT
256             param_name: cps_net_mask
257       type: string
258       description: CPS network mask
259       default: 255.255.255.0
260     oam_net_mask:
261       label: CPS network mask
262       hidden: false
263       immutable: false
264       annotations:
265         source:
266           type: org.openecomp.annotations.Source
267           properties:
268             vf_module_label:
269             - hot-nimbus-pcm_v0.4
270             source_type: HEAT
271             param_name: oam_net_mask
272       type: string
273       description: CPS network mask
274       default: 255.255.255.0
275     oam_net_name:
276       label: OAM network name
277       hidden: false
278       immutable: false
279       annotations:
280         source:
281           type: org.openecomp.annotations.Source
282           properties:
283             vf_module_label:
284             - hot-nimbus-pcm_v0.4
285             source_type: HEAT
286             param_name: oam_net_name
287       type: string
288       description: OAM network name
289       default: oam_protected_net_0
290   node_templates:
291     server_pcm_002:
292       type: org.openecomp.resource.abstract.nodes.heat.pcm_server
293       directives:
294       - substitutable
295       properties:
296         pcm_flavor_name:
297           get_input: pcm_flavor_name
298         service_template_filter:
299           substitute_service_template: nested-pcm_v0.1ServiceTemplate.yaml
300         port_pcm_port_1_network_role_tag: oam
301         availabilityzone_name:
302           get_input: availabilityzone_name
303         port_pcm_port_0_ip_requirements:
304         - ip_version: 4
305           ip_count_required:
306             is_required: true
307           floating_ip_count_required:
308             is_required: false
309         pcm_image_name:
310           get_input: pcm_image_name
311         port_pcm_port_1_mac_requirements:
312           mac_count_required:
313             is_required: false
314         port_pcm_port_1_ip_requirements:
315         - ip_version: 4
316           ip_count_required:
317             is_required: true
318           floating_ip_count_required:
319             is_required: false
320         port_pcm_port_0_network_role_tag: cps
321         port_pcm_port_0_mac_requirements:
322           mac_count_required:
323             is_required: false
324         pcm_server_name:
325           get_input:
326           - pcm_server_names
327           - 0
328     server_oam_001:
329       type: org.openecomp.resource.abstract.nodes.heat.oam_server
330       directives:
331       - substitutable
332       properties:
333         port_pcm_port_00_ip_requirements:
334         - ip_version: 4
335           ip_count_required:
336             is_required: true
337           floating_ip_count_required:
338             is_required: false
339         availabilityzone_name:
340           get_input: availabilityzone_name
341         oam_net_gw:
342           get_input: oam_net_gw
343         port_pcm_port_00_mac_requirements:
344           mac_count_required:
345             is_required: false
346         oam_flavor_name:
347           get_input: oam_flavor_name
348         security_group_name:
349           get_input: security_group_name
350         cps_net_ip:
351           get_input:
352           - cps_net_ips
353           - 0
354         port_pcm_port_01_ip_requirements:
355         - ip_version: 4
356           ip_count_required:
357             is_required: true
358           floating_ip_count_required:
359             is_required: false
360         oam_server_name:
361           get_input:
362           - oam_server_names
363           - 0
364         port_pcm_port_00_network_role_tag: cps
365         service_template_filter:
366           substitute_service_template: nested-oam_v0.1ServiceTemplate.yaml
367         port_pcm_port_01_mac_requirements:
368           mac_count_required:
369             is_required: false
370         pcm_vol:
371           get_input:
372           - pcm_volumes
373           - 0
374         oam_image_name:
375           get_input: oam_image_name
376         cps_net_name:
377           get_input: cps_net_name
378         cps_net_mask:
379           get_input: cps_net_mask
380         oam_net_ip:
381           get_input:
382           - oam_net_ips
383           - 0
384         oam_net_mask:
385           get_input: oam_net_mask
386         oam_net_name:
387           get_input: oam_net_name
388         port_pcm_port_01_network_role_tag: oam
389     server_pcm_001:
390       type: org.openecomp.resource.abstract.nodes.heat.pcm_server
391       directives:
392       - substitutable
393       properties:
394         port_pcm_port_1_network_role_tag: oam
395         availabilityzone_name:
396           get_input: availabilityzone_name
397         port_pcm_port_0_ip_requirements:
398         - ip_version: 4
399           ip_count_required:
400             is_required: true
401           floating_ip_count_required:
402             is_required: false
403         oam_net_gw:
404           get_input: oam_net_gw
405         pcm_image_name:
406           get_input: pcm_image_name
407         security_group_name:
408           get_input: security_group_name
409         cps_net_ip:
410           get_input:
411           - cps_net_ips
412           - 0
413         port_pcm_port_1_mac_requirements:
414           mac_count_required:
415             is_required: false
416         pcm_flavor_name:
417           get_input: pcm_flavor_name
418         service_template_filter:
419           substitute_service_template: nested-pcm_v0.1ServiceTemplate.yaml
420         pcm_vol:
421           get_input:
422           - pcm_volumes
423           - 0
424         port_pcm_port_1_ip_requirements:
425         - ip_version: 4
426           ip_count_required:
427             is_required: true
428           floating_ip_count_required:
429             is_required: false
430         port_pcm_port_0_network_role_tag: cps
431         port_pcm_port_0_mac_requirements:
432           mac_count_required:
433             is_required: false
434         pcm_server_name:
435           get_input:
436           - pcm_server_names
437           - 0
438         cps_net_name:
439           get_input: cps_net_name
440         cps_net_mask:
441           get_input: cps_net_mask
442         oam_net_ip:
443           get_input:
444           - oam_net_ips
445           - 0
446         oam_net_mask:
447           get_input: oam_net_mask
448         oam_net_name:
449           get_input: oam_net_name
450     packet_mirror_network:
451       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
452       properties:
453         tenant_id:
454           get_attribute:
455           - abstract_compute
456           - compute_instance_name
457         network_name:
458           get_attribute:
459           - server_pcm_001
460           - instance_name
461     compute_port_0:
462       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
463       properties:
464         ip_requirements:
465         - ip_version: 4
466           ip_count_required:
467             is_required: false
468           floating_ip_count_required:
469             is_required: false
470         mac_requirements:
471           mac_count_required:
472             is_required: false
473         network:
474           get_input: net_name
475     abstract_compute:
476       type: org.openecomp.resource.abstract.nodes.compute
477       directives:
478       - substitutable
479       properties:
480         vm_image_name:
481           get_input: compute_image_name
482         compute_compute_name:
483         - compute_name: null
484         vm_flavor_name:
485           compute_flavor_name: null
486         compute_compute_config_drive:
487         - get_attribute:
488           - compute_port_0
489           - tenant_id
490           - port_security_enabled
491           - device_id
492           - qos_policy
493           - allowed_address_pairs
494           - show
495           - device_owner
496           - network
497           - security_groups
498           - fixed_ips
499           - mac_address
500           - admin_state_up
501           - name
502           - subnets
503           - status
504         service_template_filter:
505           substitute_service_template: Nested_computeServiceTemplate.yaml
506           count: 1
507         index_value:
508           get_property:
509           - SELF
510           - service_template_filter
511           - index_value
512   groups:
513     hot-nimbus-pcm_v0.4_group:
514       type: org.openecomp.groups.heat.HeatStack
515       properties:
516         heat_file: ../Artifacts/hot-nimbus-pcm_v0.4.yaml
517         description: heat template that creates PCRF Cluman stack
518       members:
519       - server_pcm_002
520       - server_oam_001
521       - server_pcm_001
522       - packet_mirror_network
523       - compute_port_0
524       - abstract_compute
525   outputs:
526     output_attr_nested_resource_same_type:
527       value:
528         get_attribute:
529         - server_pcm_001
530         - server_pcm_id
531     output_attr_non_nested_compute:
532       value:
533         get_attribute:
534         - abstract_compute
535         - compute_instance_name
536     output_attr_nested_resource_different_type:
537       value:
538         get_attribute:
539         - server_oam_001
540         - server_oam_id
541     output_attr_nested_resource1:
542       value:
543         get_attribute:
544         - server_pcm_001
545         - server_pcm_id
546     output_attr_non_consolidation_entity:
547       value:
548         get_attribute:
549         - packet_mirror_network
550         - status
551     output_attr_nested_resource2:
552       value:
553         get_attribute:
554         - server_pcm_002
555         - server_pcm_id