f8113a608369537d741c092857b26da97059bab0
[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_002:
244       type: org.openecomp.resource.abstract.nodes.heat.nested-pcm_v0.1
245       directives:
246       - substitutable
247       properties:
248         availabilityzone_name:
249           get_input: availabilityzone_name
250         oam_net_gw:
251           get_input: oam_net_gw
252         pcm_image_name:
253           get_input: pcm_image_name
254         security_group_name:
255           get_input: security_group_name
256         cps_net_ip:
257           get_input:
258           - cps_net_ips
259           - 0
260         pcm_flavor_name:
261           get_input: pcm_flavor_name
262         service_template_filter:
263           substitute_service_template: nested-pcm_v0.1ServiceTemplate.yaml
264           count: 1
265           mandatory: true
266         pcm_vol:
267           get_input:
268           - pcm_volumes
269           - 0
270         pcm_server_name:
271           get_input:
272           - pcm_server_names
273           - 1
274         cps_net_name:
275           get_input: cps_net_name
276         cps_net_mask:
277           get_input: cps_net_mask
278         oam_net_ip:
279           get_input:
280           - oam_net_ips
281           - 0
282         oam_net_mask:
283           get_input: oam_net_mask
284         oam_net_name:
285           get_input: oam_net_name
286     server_pcm_001:
287       type: org.openecomp.resource.abstract.nodes.heat.nested-pcm_v0.1
288       directives:
289       - substitutable
290       properties:
291         availabilityzone_name:
292           get_input: availabilityzone_name
293         oam_net_gw:
294           get_input: oam_net_gw
295         pcm_image_name:
296           get_input: pcm_image_name
297         security_group_name:
298           get_input: security_group_name
299         cps_net_ip:
300           get_input:
301           - cps_net_ips
302           - 0
303         pcm_flavor_name:
304           get_input: pcm_flavor_name
305         service_template_filter:
306           substitute_service_template: nested-pcm_v0.1ServiceTemplate.yaml
307         pcm_vol:
308           get_input:
309           - pcm_volumes
310           - 0
311         pcm_server_name:
312           get_input:
313           - pcm_server_names
314           - 0
315         cps_net_name:
316           get_input: cps_net_name
317         cps_net_mask:
318           get_input: cps_net_mask
319         oam_net_ip:
320           get_input:
321           - oam_net_ips
322           - 0
323         oam_net_mask:
324           get_input: oam_net_mask
325         oam_net_name:
326           get_input: oam_net_name
327     compute_port_0:
328       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
329       properties:
330         ip_requirements:
331         - ip_version: 4
332           ip_count_required:
333             is_required: false
334           floating_ip_count_required:
335             is_required: false
336         mac_requirements:
337           mac_count_required:
338             is_required: false
339         network:
340           get_input: net_name
341     abstract_compute:
342       type: org.openecomp.resource.abstract.nodes.compute
343       directives:
344       - substitutable
345       properties:
346         compute_compute_user_data_format:
347         - get_attribute:
348           - server_pcm_001
349           - oam_net_gw
350         vm_image_name:
351           get_input: compute_image_name
352         compute_compute_name:
353         - compute_name: null
354         vm_flavor_name:
355           compute_flavor_name: null
356         compute_compute_config_drive:
357         - get_attribute:
358           - compute_port_0
359           - tenant_id
360           - port_security_enabled
361           - device_id
362           - qos_policy
363           - allowed_address_pairs
364           - show
365           - device_owner
366           - network
367           - security_groups
368           - fixed_ips
369           - mac_address
370           - admin_state_up
371           - name
372           - subnets
373           - status
374         service_template_filter:
375           substitute_service_template: Nested_computeServiceTemplate.yaml
376           count: 1
377         index_value:
378           get_property:
379           - SELF
380           - service_template_filter
381           - index_value
382   groups:
383     hot-nimbus-pcm_v0.4_group:
384       type: org.openecomp.groups.heat.HeatStack
385       properties:
386         heat_file: ../Artifacts/hot-nimbus-pcm_v0.4.yaml
387         description: heat template that creates PCRF Cluman stack
388       members:
389       - server_pcm_002
390       - server_pcm_001
391       - compute_port_0
392       - abstract_compute