ef299fb3ccf2e445a9ae8840ae07859576af3154
[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     security_group_name:
111       label: security group 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: security_group_name
122       type: string
123       description: the name of security group
124       default: nimbus_security_group
125     pcm_volumes:
126       label: CPS Cluman Cinder Volume
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: pcm_volumes
137       type: list
138       description: CPS Cluman Cinder Volume
139       default:
140       - 249cb355-8fdf-4382-9c3c-a2ebe767d45b
141       entry_schema:
142         type: string
143     compute_image_name:
144       hidden: false
145       immutable: false
146       annotations:
147         source:
148           type: org.openecomp.annotations.Source
149           properties:
150             vf_module_label:
151             - hot-nimbus-pcm_v0.4
152             source_type: HEAT
153             param_name: compute_image_name
154       type: string
155     pcm_flavor_name:
156       label: PCRF CM flavor name
157       hidden: false
158       immutable: false
159       annotations:
160         source:
161           type: org.openecomp.annotations.Source
162           properties:
163             vf_module_label:
164             - hot-nimbus-pcm_v0.4
165             source_type: HEAT
166             param_name: pcm_flavor_name
167       type: string
168       description: flavor name of PCRF CM instance
169       default: cps
170     cps_net_name:
171       label: CPS network 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: cps_net_name
182       type: string
183       description: CPS network name
184       default: int_pcrf_net_0
185     cps_net_mask:
186       label: CPS network mask
187       hidden: false
188       immutable: false
189       annotations:
190         source:
191           type: org.openecomp.annotations.Source
192           properties:
193             vf_module_label:
194             - hot-nimbus-pcm_v0.4
195             source_type: HEAT
196             param_name: cps_net_mask
197       type: string
198       description: CPS network mask
199       default: 255.255.255.0
200     oam_net_mask:
201       label: CPS network mask
202       hidden: false
203       immutable: false
204       annotations:
205         source:
206           type: org.openecomp.annotations.Source
207           properties:
208             vf_module_label:
209             - hot-nimbus-pcm_v0.4
210             source_type: HEAT
211             param_name: oam_net_mask
212       type: string
213       description: CPS network mask
214       default: 255.255.255.0
215     oam_net_name:
216       label: OAM network name
217       hidden: false
218       immutable: false
219       annotations:
220         source:
221           type: org.openecomp.annotations.Source
222           properties:
223             vf_module_label:
224             - hot-nimbus-pcm_v0.4
225             source_type: HEAT
226             param_name: oam_net_name
227       type: string
228       description: OAM network name
229       default: oam_protected_net_0
230     port_net_name:
231       hidden: false
232       immutable: false
233       annotations:
234         source:
235           type: org.openecomp.annotations.Source
236           properties:
237             vf_module_label:
238             - hot-nimbus-pcm_v0.4
239             source_type: HEAT
240             param_name: port_net_name
241       type: string
242   node_templates:
243     server_pcm_001:
244       type: org.openecomp.resource.abstract.nodes.heat.pcm_server
245       directives:
246       - substitutable
247       properties:
248         port_pcm_port_1_network_role_tag: oam
249         availabilityzone_name:
250           get_input: availabilityzone_name
251         port_pcm_port_0_ip_requirements:
252         - ip_version: 4
253           ip_count_required:
254             is_required: true
255           floating_ip_count_required:
256             is_required: false
257         - ip_version: 6
258           ip_count_required:
259             is_required: false
260           floating_ip_count_required:
261             is_required: false
262         oam_net_gw:
263           get_input: oam_net_gw
264         pcm_image_name:
265           get_input: pcm_image_name
266         security_group_name:
267           get_input: security_group_name
268         cps_net_ip:
269           get_input:
270           - cps_net_ips
271           - 0
272         port_pcm_port_1_mac_requirements:
273           mac_count_required:
274             is_required: false
275         pcm_flavor_name:
276           get_input: pcm_flavor_name
277         service_template_filter:
278           substitute_service_template: nested-pcm_v0.1ServiceTemplate.yaml
279         pcm_vol:
280           get_input:
281           - pcm_volumes
282           - 0
283         port_pcm_port_1_ip_requirements:
284         - ip_version: 4
285           ip_count_required:
286             is_required: true
287           floating_ip_count_required:
288             is_required: false
289         - ip_version: 6
290           ip_count_required:
291             is_required: false
292           floating_ip_count_required:
293             is_required: false
294         port_pcm_port_0_network_role_tag: cps
295         port_pcm_port_0_mac_requirements:
296           mac_count_required:
297             is_required: false
298         pcm_server_name:
299           get_input:
300           - pcm_server_names
301           - 0
302         cps_net_name:
303           get_input: cps_net_name
304         cps_net_mask:
305           get_input: cps_net_mask
306         oam_net_ip:
307           get_input:
308           - oam_net_ips
309           - 0
310         oam_net_mask:
311           get_input: oam_net_mask
312         oam_net_name:
313           get_input: oam_net_name
314     packet_mirror_network:
315       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
316       properties:
317         network_name:
318           get_input: port_net_name
319       requirements:
320       - dependency:
321           capability: tosca.capabilities.Node
322           node: server_pcm_001
323           relationship: tosca.relationships.DependsOn
324     abstract_compute:
325       type: org.openecomp.resource.abstract.nodes.compute
326       directives:
327       - substitutable
328       properties:
329         compute_compute_user_data_format:
330         - get_attribute:
331           - server_pcm_001
332           - oam_net_gw
333         port_compute_port_subinterface_indicator:
334         - false
335         compute_compute_name:
336         - compute_name: null
337         vm_flavor_name:
338           compute_flavor_name: null
339         vm_image_name:
340           get_input: compute_image_name
341         port_compute_port_network:
342         - get_input: port_net_name
343         port_compute_port_network_role_tag: port
344         compute_compute_metadata:
345         - get_attribute:
346           - server_pcm_001
347           - server_pcm_id
348         port_compute_port_mac_requirements:
349           mac_count_required:
350             is_required: false
351         port_compute_port_ip_requirements:
352         - ip_version: 4
353           ip_count_required:
354             is_required: false
355           floating_ip_count_required:
356             is_required: false
357         - ip_version: 6
358           ip_count_required:
359             is_required: false
360           floating_ip_count_required:
361             is_required: false
362         service_template_filter:
363           substitute_service_template: Nested_computeServiceTemplate.yaml
364           count: 1
365         index_value:
366           get_property:
367           - SELF
368           - service_template_filter
369           - index_value
370   groups:
371     hot-nimbus-pcm_v0.4_group:
372       type: org.openecomp.groups.heat.HeatStack
373       properties:
374         heat_file: ../Artifacts/hot-nimbus-pcm_v0.4.yaml
375         description: heat template that creates PCRF Cluman stack
376       members:
377       - server_pcm_001
378       - packet_mirror_network
379       - abstract_compute