[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / backend / openecomp-sdc-vendor-software-product-manager / src / test / resources / extractServiceComposition / onlyComponents / MainServiceTemplate.yaml
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 node_types:
8   org.openecomp.resource.vfc.nodes.heat.pcrf_psm:
9     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
10   org.openecomp.resource.vfc.nodes.heat.pcm:
11     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
12 topology_template:
13   inputs:
14     Internal2_name:
15       label: Internal2_name
16       hidden: false
17       immutable: false
18       type: string
19       description: Internal2_name
20     Internal1_shared:
21       label: Internal1_shared
22       hidden: false
23       immutable: false
24       type: string
25       description: Internal1_shared
26     FSB1_volume_name:
27       label: FSB1_volume
28       hidden: false
29       immutable: false
30       type: string
31       description: FSB1_volume_1
32     jsa_cidr:
33       label: jsa_cidr
34       hidden: false
35       immutable: false
36       type: string
37       description: jsa_cidr
38       default: 107.243.7.128/26
39     availabilityzone_name:
40       label: availabilityzone_name
41       hidden: false
42       immutable: false
43       type: string
44       description: availabilityzone_name
45     fsb1-name:
46       label: FSB1_name
47       hidden: false
48       immutable: false
49       type: string
50       description: FSB1_name
51     pcm_image_name:
52       label: pcm_image_name
53       hidden: false
54       immutable: false
55       type: string
56       description: pcm_image_name
57     Internal2_external:
58       label: Internal2_external
59       hidden: false
60       immutable: false
61       type: string
62       description: Internal2_external
63     Internal2_forwarding_mode:
64       label: Internal2_forwarding_mode
65       hidden: false
66       immutable: false
67       type: string
68       description: Internal2_forwarding_mode
69     pcrf_psm_flavor_name:
70       label: pcrf_psm_flavor_name
71       hidden: false
72       immutable: false
73       type: string
74       description: pcrf_psm_flavor_name
75     pcrf_psm_image_name:
76       label: pcrf_psm_image_name
77       hidden: false
78       immutable: false
79       type: string
80       description: pcrf_psm_image_name
81     FSB_1_image:
82       label: MME_FSB1
83       hidden: false
84       immutable: false
85       type: string
86       description: MME_FSB1_15B-CP04-r5a01
87     volume_size:
88       label: volume size
89       hidden: false
90       immutable: false
91       type: float
92       description: my volume size 320GB
93     fsb1-Internal1-mac:
94       label: FSB1_internal_mac
95       hidden: false
96       immutable: false
97       type: string
98       description: FSB1_internal_mac
99     Internal2_shared:
100       label: Internal2_shared
101       hidden: false
102       immutable: false
103       type: string
104       description: Internal2_shared
105     pcm_server_name:
106       label: pcm_server_name
107       hidden: false
108       immutable: false
109       type: string
110       description: pcm_server_name
111     Internal1_net_name:
112       label: Internal1_net_name
113       hidden: false
114       immutable: false
115       type: string
116       description: Internal1_net_name
117     oam_net_name:
118       label: oam_net_name
119       hidden: false
120       immutable: false
121       type: string
122       description: oam_net_name
123     fsb1-flavor:
124       label: FSB1_flavor
125       hidden: false
126       immutable: false
127       type: string
128       description: FSB1_flavor
129     fsb1-Internal2-mac:
130       label: FSB1_internal_mac
131       hidden: false
132       immutable: false
133       type: string
134       description: FSB1_internal_mac
135     volume_type:
136       label: volume type
137       hidden: false
138       immutable: false
139       type: string
140       description: volume type Gold
141     fsb1-zone:
142       label: FSB1_zone
143       hidden: false
144       immutable: false
145       type: string
146       description: FSB1_zone
147     fsb_zone:
148       label: FSB1_zone
149       hidden: false
150       immutable: false
151       type: string
152       description: FSB1_zone
153     security_group_name:
154       hidden: false
155       immutable: false
156       type: list
157       description: CMAUI1, CMAUI2 server names
158       entry_schema:
159         type: String
160     jsa_net_name:
161       label: jsa_net_name
162       hidden: false
163       immutable: false
164       type: string
165       description: jsa_net_name
166       default: jsa_log_net_0
167     pcrf_psm_server_name:
168       label: pcrf_psm_server_name
169       hidden: false
170       immutable: false
171       type: string
172       description: pcrf_psm_server_name
173     pcm_flavor_name:
174       label: pcm_flavor_name
175       hidden: false
176       immutable: false
177       type: string
178       description: pcm_flavor_name
179     oam_net_id:
180       label: oam_net_id
181       hidden: false
182       immutable: false
183       type: string
184       description: oam_net_id
185     fsb2-Internal1-mac:
186       label: FSB1_internal_mac
187       hidden: false
188       immutable: false
189       type: string
190       description: FSB1_internal_mac
191     Internal1_forwarding_mode:
192       label: Internal1_forwarding_mode
193       hidden: false
194       immutable: false
195       type: string
196       description: Internal1_forwarding_mode
197     pcrf_cps_net_name:
198       label: pcrf_cps_net_name
199       hidden: false
200       immutable: false
201       type: string
202       description: pcrf_cps_net_name
203     cps_net_name:
204       label: cps_net_name
205       hidden: false
206       immutable: false
207       type: string
208       description: cps_net_name
209     pcrf_security_group_name:
210       hidden: false
211       immutable: false
212       type: list
213       description: CMAUI1, CMAUI2 server names
214       entry_schema:
215         type: String
216     Internal1_external:
217       label: Internal1_external
218       hidden: false
219       immutable: false
220       type: string
221       description: Internal1_external
222   node_templates:
223     nova_local_type_pcm1:
224       type: org.openecomp.resource.vfc.nodes.heat.pcm
225       properties:
226         flavor:
227           get_input: pcm_flavor_name
228         availability_zone:
229           get_input: availabilityzone_name
230         image:
231           get_input: pcm_image_name
232         config_drive: true
233         user_data_format: RAW
234         name:
235           get_input: pcm_server_name
236         user_data: UNSUPPORTED_RESOURCE_server_init
237     nova_local_type_pcm2:
238       type: org.openecomp.resource.vfc.nodes.heat.pcm
239       properties:
240         flavor:
241           get_input: pcm_flavor_name
242         availability_zone:
243           get_input: availabilityzone_name
244         image:
245           get_input: pcm_image_name
246         config_drive: true
247         user_data_format: RAW
248         name:
249           get_input: pcm_server_name
250         user_data: UNSUPPORTED_RESOURCE_server_init
251     nova_local_type_pcrf_psm:
252       type: org.openecomp.resource.vfc.nodes.heat.pcrf_psm
253       properties:
254         flavor:
255           get_input: pcm_flavor_name
256         availability_zone:
257           get_input: availabilityzone_name
258         image:
259           get_input: pcm_image_name
260         config_drive: true
261         user_data_format: RAW
262         name:
263           get_input: pcm_server_name
264         user_data: UNSUPPORTED_RESOURCE_server_init
265     nova_global_type1:
266       type: org.openecomp.resource.vfc.nodes.heat.nova.Server
267       properties:
268         flavor:
269           get_input: fsb1-flavor
270         availability_zone:
271           get_input: fsb_zone
272         name:
273           get_input: fsb1-name
274     nova_global_type2:
275       type: org.openecomp.resource.vfc.nodes.heat.nova.Server
276       properties:
277         flavor:
278           get_input: fsb1-flavor
279         availability_zone:
280           get_input: fsb_zone
281         metadata:
282           write_files:
283           - path: /etc/sysconfig/network-scripts/ifcfg-eth0
284             permissions: '0644'
285             content:
286               str_replace:
287                 template:
288                   get_artifact:
289                   - SELF
290                   - nimbus-ethernet
291                 params:
292                   $dev: eth0
293                   $netmask:
294                     get_input: cps_net_mask
295                   $ip:
296                     get_input: cps_net_ip
297           - path: /etc/sysconfig/network-scripts/ifcfg-eth1
298             permissions: '0644'
299             content:
300               str_replace:
301                 template:
302                   get_artifact:
303                   - SELF
304                   - nimbus-ethernet-gw
305                 params:
306                   $dev: eth1
307                   $netmask:
308                     get_input: oam_net_mask
309                   $gateway:
310                     get_input: oam_net_gw
311                   $ip:
312                     get_input: oam_net_ip
313         name:
314           get_input: fsb1-name
315       artifacts:
316         nimbus-ethernet-gw:
317           type: tosca.artifacts.Deployment
318           file: ../Artifacts/nimbus-ethernet-gw
319         nimbus-ethernet:
320           type: tosca.artifacts.Deployment
321           file: ../Artifacts/nimbus-ethernet
322   groups:
323     ep-jsa_net:
324       type: org.openecomp.groups.heat.HeatStack
325       properties:
326         heat_file: ../Artifacts/ep-jsa_net.yaml
327         description: |
328           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
329       members:
330       - nova_local_type_pcm1
331       - nova_local_type_pcm2
332       - nova_local_type_pcrf_psm
333       - nova_global_type1
334       - nova_global_type2