[sdc] docker file fix for cassandra
[sdc.git] / openecomp-be / backend / openecomp-sdc-vendor-software-product-manager / src / test / resources / extractServiceComposition / componentsWithPort / ComponentsWithPortST.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
4 imports:
5   NeutronPortGlobalTypes:
6     file: NeutronPortGlobalTypesServiceTemplate.yaml
7   NeutronNetGlobalTypes:
8     file: NeutronNetGlobalTypesServiceTemplate.yaml
9   CommonGlobalTypes:
10     file: CommonGlobalTypesServiceTemplate.yaml
11   CinderVolumeGlobalTypes:
12     file: CinderVolumeGlobalTypesServiceTemplate.yaml
13   ContrailNetworkRuleGlobalType:
14     file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml
15   NeutronSecurityRulesGlobalTypes:
16     file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml
17   NovaServerGlobalTypes:
18     file: NovaServerGlobalTypesServiceTemplate.yaml
19   ContrailVirtualNetworkGlobalType:
20     file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml
21   AbstractSubstituteGlobalTypes:
22     file: AbstractSubstituteGlobalTypesServiceTemplate.yaml
23 node_types:
24   org.openecomp.resource.vfc.nodes.heat.pcrf_psm:
25     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
26   org.openecomp.resource.vfc.nodes.heat.pcm:
27     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
28 topology_template:
29   inputs:
30     Internal2_name:
31       label: Internal2_name
32       hidden: false
33       immutable: false
34       type: string
35       description: Internal2_name
36     Internal1_shared:
37       label: Internal1_shared
38       hidden: false
39       immutable: false
40       type: string
41       description: Internal1_shared
42     FSB1_volume_name:
43       label: FSB1_volume
44       hidden: false
45       immutable: false
46       type: string
47       description: FSB1_volume_1
48     jsa_cidr:
49       label: jsa_cidr
50       hidden: false
51       immutable: false
52       type: string
53       description: jsa_cidr
54       default: 107.243.7.128/26
55     availabilityzone_name:
56       label: availabilityzone_name
57       hidden: false
58       immutable: false
59       type: string
60       description: availabilityzone_name
61     fsb1-name:
62       label: FSB1_name
63       hidden: false
64       immutable: false
65       type: string
66       description: FSB1_name
67     pcm_image_name:
68       label: pcm_image_name
69       hidden: false
70       immutable: false
71       type: string
72       description: pcm_image_name
73     Internal2_external:
74       label: Internal2_external
75       hidden: false
76       immutable: false
77       type: string
78       description: Internal2_external
79     Internal2_forwarding_mode:
80       label: Internal2_forwarding_mode
81       hidden: false
82       immutable: false
83       type: string
84       description: Internal2_forwarding_mode
85     pcrf_psm_flavor_name:
86       label: pcrf_psm_flavor_name
87       hidden: false
88       immutable: false
89       type: string
90       description: pcrf_psm_flavor_name
91     pcrf_psm_image_name:
92       label: pcrf_psm_image_name
93       hidden: false
94       immutable: false
95       type: string
96       description: pcrf_psm_image_name
97     FSB_1_image:
98       label: MME_FSB1
99       hidden: false
100       immutable: false
101       type: string
102       description: MME_FSB1_15B-CP04-r5a01
103     volume_size:
104       label: volume size
105       hidden: false
106       immutable: false
107       type: float
108       description: my volume size 320GB
109     fsb1-Internal1-mac:
110       label: FSB1_internal_mac
111       hidden: false
112       immutable: false
113       type: string
114       description: FSB1_internal_mac
115     Internal2_shared:
116       label: Internal2_shared
117       hidden: false
118       immutable: false
119       type: string
120       description: Internal2_shared
121     pcm_server_name:
122       label: pcm_server_name
123       hidden: false
124       immutable: false
125       type: string
126       description: pcm_server_name
127     Internal1_net_name:
128       label: Internal1_net_name
129       hidden: false
130       immutable: false
131       type: string
132       description: Internal1_net_name
133     oam_net_name:
134       label: oam_net_name
135       hidden: false
136       immutable: false
137       type: string
138       description: oam_net_name
139     fsb1-flavor:
140       label: FSB1_flavor
141       hidden: false
142       immutable: false
143       type: string
144       description: FSB1_flavor
145     fsb1-Internal2-mac:
146       label: FSB1_internal_mac
147       hidden: false
148       immutable: false
149       type: string
150       description: FSB1_internal_mac
151     volume_type:
152       label: volume type
153       hidden: false
154       immutable: false
155       type: string
156       description: volume type Gold
157     fsb1-zone:
158       label: FSB1_zone
159       hidden: false
160       immutable: false
161       type: string
162       description: FSB1_zone
163     fsb_zone:
164       label: FSB1_zone
165       hidden: false
166       immutable: false
167       type: string
168       description: FSB1_zone
169     security_group_name:
170       hidden: false
171       immutable: false
172       type: list
173       description: CMAUI1, CMAUI2 server names
174       entry_schema:
175         type: String
176     jsa_net_name:
177       label: jsa_net_name
178       hidden: false
179       immutable: false
180       type: string
181       description: jsa_net_name
182       default: jsa_log_net_0
183     pcrf_psm_server_name:
184       label: pcrf_psm_server_name
185       hidden: false
186       immutable: false
187       type: string
188       description: pcrf_psm_server_name
189     pcm_flavor_name:
190       label: pcm_flavor_name
191       hidden: false
192       immutable: false
193       type: string
194       description: pcm_flavor_name
195     oam_net_id:
196       label: oam_net_id
197       hidden: false
198       immutable: false
199       type: string
200       description: oam_net_id
201     fsb2-Internal1-mac:
202       label: FSB1_internal_mac
203       hidden: false
204       immutable: false
205       type: string
206       description: FSB1_internal_mac
207     Internal1_forwarding_mode:
208       label: Internal1_forwarding_mode
209       hidden: false
210       immutable: false
211       type: string
212       description: Internal1_forwarding_mode
213     pcrf_cps_net_name:
214       label: pcrf_cps_net_name
215       hidden: false
216       immutable: false
217       type: string
218       description: pcrf_cps_net_name
219     cps_net_name:
220       label: cps_net_name
221       hidden: false
222       immutable: false
223       type: string
224       description: cps_net_name
225     pcrf_security_group_name:
226       hidden: false
227       immutable: false
228       type: list
229       description: CMAUI1, CMAUI2 server names
230       entry_schema:
231         type: String
232     Internal1_external:
233       label: Internal1_external
234       hidden: false
235       immutable: false
236       type: string
237       description: Internal1_external
238   node_templates:
239     pcm_port_1:
240       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
241       properties:
242         security_groups:
243         - get_input: security_group_name
244         fixed_ips:
245         - ip_address:
246             get_input: oam_net_ip
247         network:
248           get_input: oam_net_name
249       requirements:
250       - binding:
251           capability: tosca.capabilities.network.Bindable
252           node: server_pcm
253           relationship: tosca.relationships.network.BindsTo
254     FSB1_Internal2:
255       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
256       properties:
257         mac_address:
258           get_input: fsb1-Internal2-mac
259         network: Internal2-net
260       requirements:
261       - binding:
262           capability: tosca.capabilities.network.Bindable
263           node: FSB2
264           relationship: tosca.relationships.network.BindsTo
265     FSB1_Internal1:
266       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
267       properties:
268         mac_address:
269           get_input: fsb1-Internal1-mac
270         network: Internal1-net
271       requirements:
272       - link:
273           capability: tosca.capabilities.network.Linkable
274           node: Internal1-net
275           relationship: tosca.relationships.network.LinksTo
276       - binding:
277           capability: tosca.capabilities.network.Bindable
278           node: FSB1
279           relationship: tosca.relationships.network.BindsTo
280     FSB1_OAM:
281       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
282       properties:
283         fixed_ips:
284         - ip_address:
285             get_input: fsb1-oam-ip
286         network:
287           get_input: oam_net_id
288       requirements:
289       - binding:
290           capability: tosca.capabilities.network.Bindable
291           node: FSB1
292           relationship: tosca.relationships.network.BindsTo
293     psm01_port_0:
294       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
295       properties:
296         security_groups:
297         - get_input: pcrf_security_group_name
298         fixed_ips:
299         - ip_address:
300             get_input: pcrf_cps_net_ip
301         network:
302           get_input: pcrf_cps_net_name
303       requirements:
304       - binding:
305           capability: tosca.capabilities.network.Bindable
306           node: pcrf_server_psm
307           relationship: tosca.relationships.network.BindsTo
308     pcm_port_0:
309       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
310       properties:
311         security_groups:
312         - get_input: security_group_name
313         fixed_ips:
314         - ip_address:
315             get_input: cps_net_ip
316         network:
317           get_input: cps_net_name
318       requirements:
319       - binding:
320           capability: tosca.capabilities.network.Bindable
321           node: server_pcm
322           relationship: tosca.relationships.network.BindsTo
323     server_pcm:
324       type: org.openecomp.resource.vfc.nodes.heat.pcm
325       properties:
326         flavor:
327           get_input: pcm_flavor_name
328         availability_zone:
329           get_input: availabilityzone_name
330         image:
331           get_input: pcm_image_name
332         config_drive: 'True'
333         user_data_format: RAW
334         name:
335           get_input: pcm_server_name
336         user_data: UNSUPPORTED_RESOURCE_server_init
337     pcrf_server_psm:
338       type: org.openecomp.resource.vfc.nodes.heat.pcrf_psm
339       properties:
340         flavor:
341           get_input: pcrf_psm_flavor_name
342         availability_zone:
343           get_input: availabilityzone_name
344         image:
345           get_input: pcrf_psm_image_name
346         config_drive: 'True'
347         metadata:
348           vnf_id:
349             get_input: pcrf_vnf_id
350         user_data_format: RAW
351         name:
352           get_input: pcrf_psm_server_name
353         user_data: UNSUPPORTED_RESOURCE_pcrf_server_init
354     FSB2:
355       type: org.openecomp.resource.vfc.nodes.heat.nova.Server
356       properties:
357         flavor:
358           get_input: fsb1-flavor
359         availability_zone:
360           get_input: fsb_zone
361         name:
362           get_input: fsb1-name
363     FSB1:
364       type: org.openecomp.resource.vfc.nodes.heat.nova.Server
365       properties:
366         flavor:
367           get_input: fsb1-flavor
368         availability_zone:
369           get_input: fsb_zone
370         metadata:
371           write_files:
372           - path: /etc/sysconfig/network-scripts/ifcfg-eth0
373             permissions: '0644'
374             content:
375               str_replace:
376                 template:
377                   get_artifact:
378                   - SELF
379                   - nimbus-ethernet
380                 params:
381                   $dev: eth0
382                   $netmask:
383                     get_input: cps_net_mask
384                   $ip:
385                     get_input: cps_net_ip
386           - path: /etc/sysconfig/network-scripts/ifcfg-eth1
387             permissions: '0644'
388             content:
389               str_replace:
390                 template:
391                   get_artifact:
392                   - SELF
393                   - nimbus-ethernet-gw
394                 params:
395                   $dev: eth1
396                   $netmask:
397                     get_input: oam_net_mask
398                   $gateway:
399                     get_input: oam_net_gw
400                   $ip:
401                     get_input: oam_net_ip
402         name:
403           get_input: fsb1-name
404       artifacts:
405         nimbus-ethernet-gw:
406           type: tosca.artifacts.Deployment
407           file: ../Artifacts/nimbus-ethernet-gw
408         nimbus-ethernet:
409           type: tosca.artifacts.Deployment
410           file: ../Artifacts/nimbus-ethernet
411   groups:
412     ep-jsa_net:
413       type: org.openecomp.groups.heat.HeatStack
414       properties:
415         heat_file: ../Artifacts/ep-jsa_net.yaml
416         description: |
417           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
418       members:
419       - pcm_port_1
420       - FSB1_Internal2
421       - FSB1_Internal1
422       - FSB1_OAM
423       - psm01_port_0
424       - pcm_port_0
425       - server_pcm
426       - pcrf_server_psm
427       - FSB2
428       - FSB1