632cd40e0c1093748f9e30c7e1a2239f4bf16fb7
[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         mac_requirements:
265           mac_count_required:
266             is_required: false
267         network:
268           get_input: net_name
269     server_compute_2:
270       type: org.openecomp.resource.vfc.nodes.heat.compute
271       properties:
272         flavor:
273           compute_flavor_name: null
274         image:
275           get_input: compute_image_name
276         config_drive:
277           get_attribute:
278           - compute_port_1
279           - tenant_id
280           - port_security_enabled
281           - device_id
282           - qos_policy
283           - allowed_address_pairs
284           - show
285           - device_owner
286           - network
287           - security_groups
288           - fixed_ips
289           - mac_address
290           - admin_state_up
291           - name
292           - subnets
293           - status
294         user_data_format:
295           get_attribute:
296           - server_pcm_003
297           - oam_net_gw
298         name:
299           compute_name: null
300     compute_port_1:
301       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
302       properties:
303         ip_requirements:
304         - ip_version: 4
305           ip_count_required:
306             is_required: false
307           floating_ip_count_required:
308             is_required: false
309         mac_requirements:
310           mac_count_required:
311             is_required: false
312         network:
313           get_input: net_name
314   groups:
315     main-heat2_group:
316       type: org.openecomp.groups.heat.HeatStack
317       properties:
318         heat_file: ../Artifacts/main-heat2.yaml
319         description: heat template that creates PCRF Cluman stack
320       members:
321       - server_pcm_004
322       - server_pcm_003
323       - server_compute_2
324       - compute_port_1
325     main-heat1_group:
326       type: org.openecomp.groups.heat.HeatStack
327       properties:
328         heat_file: ../Artifacts/main-heat1.yaml
329         description: heat template that creates PCRF Cluman stack
330       members:
331       - server_pcm_002
332       - server_pcm_001
333       - server_compute
334       - compute_port_0