973d8c04090057d0bfa1077a1a4def52ee99f368
[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     oam_net_ips:
15       label: OAM network ips
16       hidden: false
17       immutable: false
18       annotations:
19         source:
20           type: org.openecomp.annotations.Source
21           properties:
22             vf_module_label:
23             - hot-nimbus-pcm_v0.4
24             source_type: HEAT
25             param_name: oam_net_ips
26       type: list
27       description: OAM network ips
28       default:
29       - 107.239.64.121
30       entry_schema:
31         type: string
32     availabilityzone_name:
33       label: availabilityzone name
34       hidden: false
35       immutable: false
36       annotations:
37         source:
38           type: org.openecomp.annotations.Source
39           properties:
40             vf_module_label:
41             - hot-nimbus-pcm_v0.4
42             source_type: HEAT
43             param_name: availabilityzone_name
44       type: string
45       description: availabilityzone name
46       default: nova
47     oam_net_gw:
48       label: CPS network gateway
49       hidden: false
50       immutable: false
51       annotations:
52         source:
53           type: org.openecomp.annotations.Source
54           properties:
55             vf_module_label:
56             - hot-nimbus-pcm_v0.4
57             source_type: HEAT
58             param_name: oam_net_gw
59       type: string
60       description: CPS network gateway
61       default: 107.239.64.1
62     pcm_server_names:
63       label: PCRF CM server names
64       hidden: false
65       immutable: false
66       annotations:
67         source:
68           type: org.openecomp.annotations.Source
69           properties:
70             vf_module_label:
71             - hot-nimbus-pcm_v0.4
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             - hot-nimbus-pcm_v0.4
90             source_type: HEAT
91             param_name: pcm_image_name
92       type: string
93       description: PCRF CM image name
94       default: rhel2
95     cps_net_ips:
96       label: CPS network ips
97       hidden: false
98       immutable: false
99       annotations:
100         source:
101           type: org.openecomp.annotations.Source
102           properties:
103             vf_module_label:
104             - hot-nimbus-pcm_v0.4
105             source_type: HEAT
106             param_name: cps_net_ips
107       type: list
108       description: CPS network ips
109       default:
110       - 172.26.16.113
111       entry_schema:
112         type: string
113     security_group_name:
114       label: security group name
115       hidden: false
116       immutable: false
117       annotations:
118         source:
119           type: org.openecomp.annotations.Source
120           properties:
121             vf_module_label:
122             - hot-nimbus-pcm_v0.4
123             source_type: HEAT
124             param_name: security_group_name
125       type: string
126       description: the name of security group
127       default: nimbus_security_group
128     pcm_volumes:
129       label: CPS Cluman Cinder Volume
130       hidden: false
131       immutable: false
132       annotations:
133         source:
134           type: org.openecomp.annotations.Source
135           properties:
136             vf_module_label:
137             - hot-nimbus-pcm_v0.4
138             source_type: HEAT
139             param_name: pcm_volumes
140       type: list
141       description: CPS Cluman Cinder Volume
142       default:
143       - 249cb355-8fdf-4382-9c3c-a2ebe767d45b
144       entry_schema:
145         type: string
146     compute_image_name:
147       hidden: false
148       immutable: false
149       annotations:
150         source:
151           type: org.openecomp.annotations.Source
152           properties:
153             vf_module_label:
154             - hot-nimbus-pcm_v0.4
155             source_type: HEAT
156             param_name: compute_image_name
157       type: string
158     pcm_flavor_name:
159       label: PCRF CM flavor name
160       hidden: false
161       immutable: false
162       annotations:
163         source:
164           type: org.openecomp.annotations.Source
165           properties:
166             vf_module_label:
167             - hot-nimbus-pcm_v0.4
168             source_type: HEAT
169             param_name: pcm_flavor_name
170       type: string
171       description: flavor name of PCRF CM instance
172       default: cps
173     net_name:
174       hidden: false
175       immutable: false
176       annotations:
177         source:
178           type: org.openecomp.annotations.Source
179           properties:
180             vf_module_label:
181             - hot-nimbus-pcm_v0.4
182             source_type: HEAT
183             param_name: net_name
184       type: string
185     cps_net_name:
186       label: CPS network name
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_name
197       type: string
198       description: CPS network name
199       default: int_pcrf_net_0
200     cps_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: cps_net_mask
212       type: string
213       description: CPS network mask
214       default: 255.255.255.0
215     oam_net_mask:
216       label: CPS network mask
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_mask
227       type: string
228       description: CPS network mask
229       default: 255.255.255.0
230     oam_net_name:
231       label: OAM network name
232       hidden: false
233       immutable: false
234       annotations:
235         source:
236           type: org.openecomp.annotations.Source
237           properties:
238             vf_module_label:
239             - hot-nimbus-pcm_v0.4
240             source_type: HEAT
241             param_name: oam_net_name
242       type: string
243       description: OAM network name
244       default: oam_protected_net_0
245   node_templates:
246     server_pcm_001:
247       type: org.openecomp.resource.abstract.nodes.heat.nested-pcm_v0.1
248       directives:
249       - substitutable
250       properties:
251         availabilityzone_name:
252           get_input: availabilityzone_name
253         oam_net_gw:
254           get_input: oam_net_gw
255         pcm_image_name:
256           get_input: pcm_image_name
257         security_group_name:
258           get_input: security_group_name
259         cps_net_ip:
260           get_input:
261           - cps_net_ips
262           - 0
263         pcm_flavor_name:
264           get_input: pcm_flavor_name
265         service_template_filter:
266           substitute_service_template: nested-pcm_v0.1ServiceTemplate.yaml
267         pcm_vol:
268           get_input:
269           - pcm_volumes
270           - 0
271         pcm_server_name:
272           get_input:
273           - pcm_server_names
274           - 0
275         cps_net_name:
276           get_input: cps_net_name
277         cps_net_mask:
278           get_input: cps_net_mask
279         oam_net_ip:
280           get_input:
281           - oam_net_ips
282           - 0
283         oam_net_mask:
284           get_input: oam_net_mask
285         oam_net_name:
286           get_input: oam_net_name
287     packet_mirror_network:
288       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
289       properties:
290         network_name:
291           get_input: net_name
292       requirements:
293       - dependency:
294           capability: tosca.capabilities.Node
295           node: server_pcm_001
296           relationship: tosca.relationships.DependsOn
297     compute_port_0:
298       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
299       properties:
300         ip_requirements:
301         - ip_version: 4
302           ip_count_required:
303             is_required: false
304           floating_ip_count_required:
305             is_required: false
306         mac_requirements:
307           mac_count_required:
308             is_required: false
309         network:
310           get_input: net_name
311     server_compute_get_attr_test:
312       type: org.openecomp.resource.vfc.nodes.heat.compute
313       properties:
314         flavor:
315           compute_flavor_name: null
316         image:
317           get_input: compute_image_name
318         metadata:
319           get_attribute:
320           - server_pcm_001
321           - server_pcm_id
322         config_drive:
323           get_attribute:
324           - compute_port_0
325           - tenant_id
326           - port_security_enabled
327           - device_id
328           - qos_policy
329           - allowed_address_pairs
330           - show
331           - device_owner
332           - network
333           - security_groups
334           - fixed_ips
335           - mac_address
336           - admin_state_up
337           - name
338           - subnets
339           - status
340         user_data_format:
341           get_attribute:
342           - server_pcm_001
343           - oam_net_gw
344         name:
345           compute_name: null
346   groups:
347     hot-nimbus-pcm_v0.4_group:
348       type: org.openecomp.groups.heat.HeatStack
349       properties:
350         heat_file: ../Artifacts/hot-nimbus-pcm_v0.4.yaml
351         description: heat template that creates PCRF Cluman stack
352       members:
353       - server_pcm_001
354       - packet_mirror_network
355       - compute_port_0
356       - server_compute_get_attr_test
357   outputs:
358     output_attr_1:
359       value:
360         get_attribute:
361         - server_pcm_001
362         - pcm_vol