bef92a9520cf11c85854d7b5548abb016d570598
[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     net_name:
171       hidden: false
172       immutable: false
173       annotations:
174         source:
175           type: org.openecomp.annotations.Source
176           properties:
177             vf_module_label:
178             - hot-nimbus-pcm_v0.4
179             source_type: HEAT
180             param_name: net_name
181       type: string
182     cps_net_name:
183       label: CPS network name
184       hidden: false
185       immutable: false
186       annotations:
187         source:
188           type: org.openecomp.annotations.Source
189           properties:
190             vf_module_label:
191             - hot-nimbus-pcm_v0.4
192             source_type: HEAT
193             param_name: cps_net_name
194       type: string
195       description: CPS network name
196       default: int_pcrf_net_0
197     cps_net_mask:
198       label: CPS network mask
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: cps_net_mask
209       type: string
210       description: CPS network mask
211       default: 255.255.255.0
212     oam_net_mask:
213       label: CPS network mask
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_net_mask
224       type: string
225       description: CPS network mask
226       default: 255.255.255.0
227     oam_net_name:
228       label: OAM network name
229       hidden: false
230       immutable: false
231       annotations:
232         source:
233           type: org.openecomp.annotations.Source
234           properties:
235             vf_module_label:
236             - hot-nimbus-pcm_v0.4
237             source_type: HEAT
238             param_name: oam_net_name
239       type: string
240       description: OAM network name
241       default: oam_protected_net_0
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_1port_0_mac_requirements:
249           mac_count_required:
250             is_required: false
251         port_pcm_1port_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         availabilityzone_name:
263           get_input: availabilityzone_name
264         port_pcm_1port_0_network_role_tag: cps
265         oam_net_gw:
266           get_input: oam_net_gw
267         pcm_image_name:
268           get_input: pcm_image_name
269         port_pcm_2port_1_network_role_tag: oam
270         security_group_name:
271           get_input: security_group_name
272         cps_net_ip:
273           get_input:
274           - cps_net_ips
275           - 0
276         port_pcm_2port_1_mac_requirements:
277           mac_count_required:
278             is_required: false
279         port_pcm_2port_1_ip_requirements:
280         - ip_version: 4
281           ip_count_required:
282             is_required: true
283           floating_ip_count_required:
284             is_required: false
285         - ip_version: 6
286           ip_count_required:
287             is_required: false
288           floating_ip_count_required:
289             is_required: false
290         pcm_flavor_name:
291           get_input: pcm_flavor_name
292         service_template_filter:
293           substitute_service_template: nested-pcm_v0.1ServiceTemplate.yaml
294         pcm_vol:
295           get_input:
296           - pcm_volumes
297           - 0
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: net_name
319       requirements:
320       - dependency:
321           capability: tosca.capabilities.Node
322           node: server_pcm_001
323           relationship: tosca.relationships.DependsOn
324     compute_port_0:
325       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
326       properties:
327         ip_requirements:
328         - ip_version: 4
329           ip_count_required:
330             is_required: false
331           floating_ip_count_required:
332             is_required: false
333         - ip_version: 6
334           ip_count_required:
335             is_required: false
336           floating_ip_count_required:
337             is_required: false
338         mac_requirements:
339           mac_count_required:
340             is_required: false
341         network:
342           get_input: net_name
343     abstract_compute:
344       type: org.openecomp.resource.abstract.nodes.compute
345       directives:
346       - substitutable
347       properties:
348         compute_compute_user_data_format:
349         - get_attribute:
350           - server_pcm_001
351           - oam_net_gw
352         vm_image_name:
353           get_input: compute_image_name
354         compute_compute_metadata:
355         - get_attribute:
356           - server_pcm_001
357           - server_pcm_id
358         compute_compute_name:
359         - compute_name: null
360         vm_flavor_name:
361           compute_flavor_name: null
362         compute_compute_config_drive:
363         - get_attribute:
364           - compute_port_0
365           - tenant_id
366           - port_security_enabled
367           - device_id
368           - qos_policy
369           - allowed_address_pairs
370           - show
371           - device_owner
372           - network
373           - security_groups
374           - fixed_ips
375           - mac_address
376           - admin_state_up
377           - name
378           - subnets
379           - status
380         service_template_filter:
381           substitute_service_template: Nested_computeServiceTemplate.yaml
382           count: 1
383         index_value:
384           get_property:
385           - SELF
386           - service_template_filter
387           - index_value
388   groups:
389     hot-nimbus-pcm_v0.4_group:
390       type: org.openecomp.groups.heat.HeatStack
391       properties:
392         heat_file: ../Artifacts/hot-nimbus-pcm_v0.4.yaml
393         description: heat template that creates PCRF Cluman stack
394       members:
395       - server_pcm_001
396       - packet_mirror_network
397       - compute_port_0
398       - abstract_compute