7a484ee3ac6ff3e8bf457b12a0f532d542d142d9
[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         - ip_version: 6
310           ip_count_required:
311             is_required: false
312           floating_ip_count_required:
313             is_required: false
314         pcm_image_name:
315           get_input: pcm_image_name
316         port_pcm_port_1_mac_requirements:
317           mac_count_required:
318             is_required: false
319         port_pcm_port_1_ip_requirements:
320         - ip_version: 4
321           ip_count_required:
322             is_required: true
323           floating_ip_count_required:
324             is_required: false
325         - ip_version: 6
326           ip_count_required:
327             is_required: false
328           floating_ip_count_required:
329             is_required: false
330         port_pcm_port_0_network_role_tag: cps
331         port_pcm_port_0_mac_requirements:
332           mac_count_required:
333             is_required: false
334         pcm_server_name:
335           get_input:
336           - pcm_server_names
337           - 0
338     server_oam_001:
339       type: org.openecomp.resource.abstract.nodes.heat.oam_server
340       directives:
341       - substitutable
342       properties:
343         port_pcm_port_00_ip_requirements:
344         - ip_version: 4
345           ip_count_required:
346             is_required: true
347           floating_ip_count_required:
348             is_required: false
349         - ip_version: 6
350           ip_count_required:
351             is_required: false
352           floating_ip_count_required:
353             is_required: false
354         availabilityzone_name:
355           get_input: availabilityzone_name
356         oam_net_gw:
357           get_input: oam_net_gw
358         port_pcm_port_00_mac_requirements:
359           mac_count_required:
360             is_required: false
361         oam_flavor_name:
362           get_input: oam_flavor_name
363         security_group_name:
364           get_input: security_group_name
365         cps_net_ip:
366           get_input:
367           - cps_net_ips
368           - 0
369         port_pcm_port_01_ip_requirements:
370         - ip_version: 4
371           ip_count_required:
372             is_required: true
373           floating_ip_count_required:
374             is_required: false
375         - ip_version: 6
376           ip_count_required:
377             is_required: false
378           floating_ip_count_required:
379             is_required: false
380         oam_server_name:
381           get_input:
382           - oam_server_names
383           - 0
384         port_pcm_port_00_network_role_tag: cps
385         service_template_filter:
386           substitute_service_template: nested-oam_v0.1ServiceTemplate.yaml
387         port_pcm_port_01_mac_requirements:
388           mac_count_required:
389             is_required: false
390         pcm_vol:
391           get_input:
392           - pcm_volumes
393           - 0
394         oam_image_name:
395           get_input: oam_image_name
396         cps_net_name:
397           get_input: cps_net_name
398         cps_net_mask:
399           get_input: cps_net_mask
400         oam_net_ip:
401           get_input:
402           - oam_net_ips
403           - 0
404         oam_net_mask:
405           get_input: oam_net_mask
406         oam_net_name:
407           get_input: oam_net_name
408         port_pcm_port_01_network_role_tag: oam
409     server_pcm_001:
410       type: org.openecomp.resource.abstract.nodes.heat.pcm_server
411       directives:
412       - substitutable
413       properties:
414         port_pcm_port_1_network_role_tag: oam
415         availabilityzone_name:
416           get_input: availabilityzone_name
417         port_pcm_port_0_ip_requirements:
418         - ip_version: 4
419           ip_count_required:
420             is_required: true
421           floating_ip_count_required:
422             is_required: false
423         - ip_version: 6
424           ip_count_required:
425             is_required: false
426           floating_ip_count_required:
427             is_required: false
428         oam_net_gw:
429           get_input: oam_net_gw
430         pcm_image_name:
431           get_input: pcm_image_name
432         security_group_name:
433           get_input: security_group_name
434         cps_net_ip:
435           get_input:
436           - cps_net_ips
437           - 0
438         port_pcm_port_1_mac_requirements:
439           mac_count_required:
440             is_required: false
441         pcm_flavor_name:
442           get_input: pcm_flavor_name
443         service_template_filter:
444           substitute_service_template: nested-pcm_v0.1ServiceTemplate.yaml
445         pcm_vol:
446           get_input:
447           - pcm_volumes
448           - 0
449         port_pcm_port_1_ip_requirements:
450         - ip_version: 4
451           ip_count_required:
452             is_required: true
453           floating_ip_count_required:
454             is_required: false
455         - ip_version: 6
456           ip_count_required:
457             is_required: false
458           floating_ip_count_required:
459             is_required: false
460         port_pcm_port_0_network_role_tag: cps
461         port_pcm_port_0_mac_requirements:
462           mac_count_required:
463             is_required: false
464         pcm_server_name:
465           get_input:
466           - pcm_server_names
467           - 0
468         cps_net_name:
469           get_input: cps_net_name
470         cps_net_mask:
471           get_input: cps_net_mask
472         oam_net_ip:
473           get_input:
474           - oam_net_ips
475           - 0
476         oam_net_mask:
477           get_input: oam_net_mask
478         oam_net_name:
479           get_input: oam_net_name
480     packet_mirror_network:
481       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
482       properties:
483         tenant_id:
484           get_attribute:
485           - abstract_compute
486           - compute_instance_name
487         network_name:
488           get_attribute:
489           - server_pcm_001
490           - instance_name
491     compute_port_0:
492       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
493       properties:
494         ip_requirements:
495         - ip_version: 4
496           ip_count_required:
497             is_required: false
498           floating_ip_count_required:
499             is_required: false
500         - ip_version: 6
501           ip_count_required:
502             is_required: false
503           floating_ip_count_required:
504             is_required: false
505         mac_requirements:
506           mac_count_required:
507             is_required: false
508         network:
509           get_input: net_name
510     abstract_compute:
511       type: org.openecomp.resource.abstract.nodes.compute
512       directives:
513       - substitutable
514       properties:
515         vm_image_name:
516           get_input: compute_image_name
517         compute_compute_name:
518         - compute_name: null
519         vm_flavor_name:
520           compute_flavor_name: null
521         compute_compute_config_drive:
522         - get_attribute:
523           - compute_port_0
524           - tenant_id
525           - port_security_enabled
526           - device_id
527           - qos_policy
528           - allowed_address_pairs
529           - show
530           - device_owner
531           - network
532           - security_groups
533           - fixed_ips
534           - mac_address
535           - admin_state_up
536           - name
537           - subnets
538           - status
539         service_template_filter:
540           substitute_service_template: Nested_computeServiceTemplate.yaml
541           count: 1
542         index_value:
543           get_property:
544           - SELF
545           - service_template_filter
546           - index_value
547   groups:
548     hot-nimbus-pcm_v0.4_group:
549       type: org.openecomp.groups.heat.HeatStack
550       properties:
551         heat_file: ../Artifacts/hot-nimbus-pcm_v0.4.yaml
552         description: heat template that creates PCRF Cluman stack
553       members:
554       - server_pcm_002
555       - server_oam_001
556       - server_pcm_001
557       - packet_mirror_network
558       - compute_port_0
559       - abstract_compute
560   outputs:
561     output_attr_nested_resource_same_type:
562       value:
563         get_attribute:
564         - server_pcm_001
565         - server_pcm_id
566     output_attr_non_nested_compute:
567       value:
568         get_attribute:
569         - abstract_compute
570         - compute_instance_name
571     output_attr_nested_resource_different_type:
572       value:
573         get_attribute:
574         - server_oam_001
575         - server_oam_id
576     output_attr_nested_resource1:
577       value:
578         get_attribute:
579         - server_pcm_001
580         - server_pcm_id
581     output_attr_non_consolidation_entity:
582       value:
583         get_attribute:
584         - packet_mirror_network
585         - status
586     output_attr_nested_resource2:
587       value:
588         get_attribute:
589         - server_pcm_002
590         - server_pcm_id