c28ffa1a53b91f53aad9e799c984d282a1cb97e4
[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 node_types:
10   org.openecomp.resource.vfc.nodes.heat.compute:
11     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
12 topology_template:
13   inputs:
14     pcm_flavor_name:
15       label: PCRF CM flavor name
16       hidden: false
17       immutable: false
18       annotations:
19         source:
20           type: org.openecomp.annotations.Source
21           properties:
22             vf_module_label:
23             - main-heat2
24             - main-heat1
25             source_type: HEAT
26             param_name: pcm_flavor_name
27       type: string
28       description: flavor name of PCRF CM instance
29       default: cps
30     availabilityzone_name:
31       label: availabilityzone name
32       hidden: false
33       immutable: false
34       annotations:
35         source:
36           type: org.openecomp.annotations.Source
37           properties:
38             vf_module_label:
39             - main-heat2
40             - main-heat1
41             source_type: HEAT
42             param_name: availabilityzone_name
43       type: string
44       description: availabilityzone name
45       default: nova
46     oam_net_gw:
47       label: CPS network gateway
48       hidden: false
49       immutable: false
50       annotations:
51         source:
52           type: org.openecomp.annotations.Source
53           properties:
54             vf_module_label:
55             - main-heat2
56             - main-heat1
57             source_type: HEAT
58             param_name: oam_net_gw
59       type: string
60       description: CPS network gateway
61     pcm_server_names:
62       label: PCRF CM server names
63       hidden: false
64       immutable: false
65       annotations:
66         source:
67           type: org.openecomp.annotations.Source
68           properties:
69             vf_module_label:
70             - main-heat2
71             - main-heat1
72             source_type: HEAT
73             param_name: pcm_server_names
74       type: list
75       description: name of the PCRF CM instance
76       default:
77       - ZRDM1PCRF01PCM001
78       entry_schema:
79         type: string
80     pcm_image_name:
81       label: PCRF CM image name
82       hidden: false
83       immutable: false
84       annotations:
85         source:
86           type: org.openecomp.annotations.Source
87           properties:
88             vf_module_label:
89             - main-heat2
90             - main-heat1
91             source_type: HEAT
92             param_name: pcm_image_name
93       type: string
94       description: PCRF CM image name
95       default: rhel2
96     net_name:
97       hidden: false
98       immutable: false
99       annotations:
100         source:
101           type: org.openecomp.annotations.Source
102           properties:
103             vf_module_label:
104             - main-heat2
105             - main-heat1
106             source_type: HEAT
107             param_name: net_name
108       type: string
109     sm_server_names:
110       label: SM server names
111       hidden: false
112       immutable: false
113       annotations:
114         source:
115           type: org.openecomp.annotations.Source
116           properties:
117             vf_module_label:
118             - main-heat1
119             source_type: HEAT
120             param_name: sm_server_names
121       type: list
122       description: name of the SM instance
123       default:
124       - ZRDM1MOGX01MSM001
125       - ZRDM1MOGX01MSM002
126       entry_schema:
127         type: string
128     compute_image_name:
129       hidden: false
130       immutable: false
131       annotations:
132         source:
133           type: org.openecomp.annotations.Source
134           properties:
135             vf_module_label:
136             - main-heat2
137             - main-heat1
138             source_type: HEAT
139             param_name: compute_image_name
140       type: string
141     dummy_net_netmask_1:
142       hidden: false
143       immutable: false
144       annotations:
145         source:
146           type: org.openecomp.annotations.Source
147           properties:
148             vf_module_label:
149             - main-heat2
150             source_type: HEAT
151             param_name: dummy_net_netmask_1
152       type: string
153       description: CSB internal network subnet mask
154       default: 255.255.255.0
155   node_templates:
156     server_pcm_002:
157       type: org.openecomp.resource.abstract.nodes.heat.nested-pcm_v0.2
158       directives:
159       - substitutable
160       properties:
161         pcm_flavor_name:
162           get_input: pcm_flavor_name
163         service_template_filter:
164           substitute_service_template: nested-pcm_v0.2ServiceTemplate.yaml
165         availabilityzone_name:
166           get_input: availabilityzone_name
167         pcm_image_name:
168           get_input: pcm_image_name
169         pcm_server_name:
170           get_input:
171           - pcm_server_names
172           - 0
173     server_pcm_001:
174       type: org.openecomp.resource.abstract.nodes.heat.nested-pcm_v0.1
175       directives:
176       - substitutable
177       properties:
178         pcm_flavor_name:
179           get_input: pcm_flavor_name
180         service_template_filter:
181           substitute_service_template: nested-pcm_v0.1ServiceTemplate.yaml
182         availabilityzone_name:
183           get_input: availabilityzone_name
184         pcm_image_name:
185           get_input: pcm_image_name
186         pcm_server_name:
187           get_input:
188           - pcm_server_names
189           - 0
190     server_pcm_004:
191       type: org.openecomp.resource.abstract.nodes.heat.nested-pcm_v0.2
192       directives:
193       - substitutable
194       properties:
195         pcm_flavor_name:
196           get_input: pcm_flavor_name
197         service_template_filter:
198           substitute_service_template: nested-pcm_v0.2ServiceTemplate.yaml
199         availabilityzone_name:
200           get_input: availabilityzone_name
201         pcm_image_name:
202           get_input: pcm_image_name
203         pcm_server_name:
204           get_input:
205           - pcm_server_names
206           - 0
207     server_pcm_003:
208       type: org.openecomp.resource.abstract.nodes.heat.nested-pcm_v0.1
209       directives:
210       - substitutable
211       properties:
212         pcm_flavor_name:
213           get_input: pcm_flavor_name
214         service_template_filter:
215           substitute_service_template: nested-pcm_v0.1ServiceTemplate.yaml
216         availabilityzone_name:
217           get_input: availabilityzone_name
218         pcm_image_name:
219           get_input: pcm_image_name
220         pcm_server_name:
221           get_input:
222           - pcm_server_names
223           - 0
224     server_compute:
225       type: org.openecomp.resource.vfc.nodes.heat.compute
226       properties:
227         flavor:
228           compute_flavor_name: null
229         image:
230           get_input: compute_image_name
231         config_drive:
232           get_attribute:
233           - compute_port_0
234           - tenant_id
235           - port_security_enabled
236           - device_id
237           - qos_policy
238           - allowed_address_pairs
239           - show
240           - device_owner
241           - network
242           - security_groups
243           - fixed_ips
244           - mac_address
245           - admin_state_up
246           - name
247           - subnets
248           - status
249         user_data_format:
250           get_attribute:
251           - server_pcm_001
252           - oam_net_gw
253         name:
254           compute_name: null
255     compute_port_0:
256       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
257       properties:
258         ip_requirements:
259         - ip_version: 4
260           ip_count_required:
261             is_required: false
262           floating_ip_count_required:
263             is_required: false
264         - ip_version: 6
265           ip_count_required:
266             is_required: false
267           floating_ip_count_required:
268             is_required: false
269         mac_requirements:
270           mac_count_required:
271             is_required: false
272         network:
273           get_input: net_name
274     server_compute_2:
275       type: org.openecomp.resource.vfc.nodes.heat.compute
276       properties:
277         flavor:
278           compute_flavor_name: null
279         image:
280           get_input: compute_image_name
281         config_drive:
282           get_attribute:
283           - compute_port_1
284           - tenant_id
285           - port_security_enabled
286           - device_id
287           - qos_policy
288           - allowed_address_pairs
289           - show
290           - device_owner
291           - network
292           - security_groups
293           - fixed_ips
294           - mac_address
295           - admin_state_up
296           - name
297           - subnets
298           - status
299         user_data_format:
300           get_attribute:
301           - server_pcm_003
302           - oam_net_gw
303         name:
304           compute_name: null
305     compute_port_1:
306       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
307       properties:
308         ip_requirements:
309         - ip_version: 4
310           ip_count_required:
311             is_required: false
312           floating_ip_count_required:
313             is_required: false
314         - ip_version: 6
315           ip_count_required:
316             is_required: false
317           floating_ip_count_required:
318             is_required: false
319         mac_requirements:
320           mac_count_required:
321             is_required: false
322         network:
323           get_input: net_name
324   groups:
325     main-heat2_group:
326       type: org.openecomp.groups.heat.HeatStack
327       properties:
328         heat_file: ../Artifacts/main-heat2.yaml
329         description: heat template that creates PCRF Cluman stack
330       members:
331       - server_pcm_004
332       - server_pcm_003
333       - server_compute_2
334       - compute_port_1
335     main-heat1_group:
336       type: org.openecomp.groups.heat.HeatStack
337       properties:
338         heat_file: ../Artifacts/main-heat1.yaml
339         description: heat template that creates PCRF Cluman stack
340       members:
341       - server_pcm_002
342       - server_pcm_001
343       - server_compute
344       - compute_port_0