[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / getAttr / getAttrUnsupportedResource / expectedoutputfiles / 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 - GlobalSubstitutionTypes:
8     file: GlobalSubstitutionTypesServiceTemplate.yaml
9 topology_template:
10   inputs:
11     vf_module_id:
12       label: VF Module ID
13       hidden: false
14       immutable: false
15       type: string
16       description: Unique ID for this VF Module instance
17       default: base
18     db_ports:
19       label: Database Ports
20       hidden: false
21       immutable: false
22       type: list
23       description: List of ports to apply to the security group for the database VMs
24       default:
25       - '27017'
26       entry_schema:
27         type: string
28     app_protocols:
29       label: Application Protocols
30       hidden: false
31       immutable: false
32       type: list
33       description: List of protocols associated with the app_ports
34       default:
35       - tcp
36       entry_schema:
37         type: string
38     db_volume_size_0:
39       label: Data Volume Size
40       hidden: false
41       immutable: false
42       type: float
43       description: Size of the data volume
44       default: 1
45       constraints:
46       - in_range:
47         - 1
48         - 2000
49     app_ports:
50       label: Application Ports
51       hidden: false
52       immutable: false
53       type: list
54       description: List of ports to apply to the security group for the application VMs
55       default:
56       - '8443'
57       entry_schema:
58         type: string
59     vnf_id:
60       label: VNF ID
61       hidden: false
62       immutable: false
63       type: string
64       description: Unique ID for this VF instance
65       default: pronghorn
66     availability_zone_0:
67       label: First Availability Zone
68       hidden: false
69       immutable: false
70       type: string
71       description: Name of the first availability zone
72       default: nova
73     app_public_key:
74       label: Application Public Key
75       hidden: false
76       immutable: false
77       type: string
78       description: Public ssh key for the application servers
79       default: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDGe+nL1U3mFHrbtmsvNWR+oDdUyyOX5KejZqe/80uwDiPNyOJjHWIVuX812AEdAAH94nQnkYr2dBiSu1FPh+auMuk3FfegchKT7pYetqELY3ryLUPEh67PmKrdlT9cQ/wQZROq672AA6qlZAYIooeLZVSzUhABfsITk0RhfcWZGIcZwv0Tja3nnhNgtqCxoTXs6fzfcCaypgwy3F0S4RewUfcz/9g7f0tze1CmWRUtPkNK2nX2/T2AJzHgy+vItwpalnon1egIszJfj7uxp+VotQlQ2PN8sI0J5zgpBFe/lxqEwtIKeiTJ16JlyDXtin/RCjCCdtvIaVCff3Z031UV jspaeth@Jonathons-MBP
80     db_image_name:
81       label: Database Image
82       hidden: false
83       immutable: false
84       type: string
85       description: Image of the database server
86       default: pronghorn-ubuntu14
87     db_volume_id_3:
88       label: Data Volume IDs for disk 3
89       hidden: false
90       immutable: false
91       type: string
92       description: IDs to be used for the database volumes
93       default: 454a7b1c-a58f-4bac-bed2-a7afa3836dd4
94     db_volume_id_2:
95       label: Data Volume IDs for disk 2
96       hidden: false
97       immutable: false
98       type: string
99       description: IDs to be used for the database volumes
100       default: 6f4d6f1a-1e88-492b-8020-b5a169381434
101     oam_net_name:
102       label: Database OAM Network
103       hidden: false
104       immutable: false
105       type: string
106       description: Name of the OAM network for the database servers
107       default: oam
108     db_flavor_name:
109       label: Database Flavor
110       hidden: false
111       immutable: false
112       type: string
113       description: Flavor of the database server
114       default: s1.test
115     db_volume_id_1:
116       label: Data Volume IDs for disk 1
117       hidden: false
118       immutable: false
119       type: string
120       description: IDs to be used for the database volumes
121       default: 5db48c7a-eb2d-4960-a90c-88a2d0052a71
122     common_protocols:
123       label: Common Protocols
124       hidden: false
125       immutable: false
126       type: list
127       description: List of protocols associated with the common_ports
128       default:
129       - tcp
130       - udp
131       - udp
132       - udp
133       entry_schema:
134         type: string
135     db_volume_id_0:
136       label: Data Volume IDs for disk 0
137       hidden: false
138       immutable: false
139       type: string
140       description: IDs to be used for the database volumes
141       default: e8abc8da-f477-4e5c-8266-98b43c982fe4
142     db_protocols:
143       label: Database Protocols
144       hidden: false
145       immutable: false
146       type: list
147       description: List of protocols associated with the db_ports
148       default:
149       - tcp
150       entry_schema:
151         type: string
152     app_flavor_name:
153       label: App Flavor
154       hidden: false
155       immutable: false
156       type: string
157       description: Flavor to be used for the application server
158       default: s1.test
159     app_deploy_timeout:
160       label: Application Deployment Timeout
161       hidden: false
162       immutable: false
163       type: float
164       description: Timeout in seconds before declaring the application stack as failed
165       default: 300
166       constraints:
167       - in_range:
168         - 60
169         - 3600
170     common_ports:
171       label: Common Ports
172       hidden: false
173       immutable: false
174       type: list
175       description: List of ports to apply to the security group for all VMs
176       default:
177       - '22'
178       - '53'
179       - '123'
180       - '161'
181       entry_schema:
182         type: string
183     app_name:
184       label: Application Hostname
185       hidden: false
186       immutable: false
187       type: string
188       description: Hostname of the application server
189       default: pronghorn-app01
190     db_name:
191       label: Database Hostname
192       hidden: false
193       immutable: false
194       type: string
195       description: Hostname of the database server
196       default: pronghorn-db01
197     app_oam_ip_0:
198       label: Application OAM IP Address
199       hidden: false
200       immutable: false
201       type: string
202       description: OAM IP Address of the application server
203       default: 10.0.0.21
204     app_vm_role:
205       label: App VM Role
206       hidden: false
207       immutable: false
208       type: string
209       description: Role for the App VM
210       default: app
211     app_image_name:
212       label: App Image
213       hidden: false
214       immutable: false
215       type: string
216       description: Image to be used for the application server
217       default: pronghorn-ubuntu14
218     db_public_key:
219       label: Database Public Key
220       hidden: false
221       immutable: false
222       type: string
223       description: Public ssh key for the database servers
224       default: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDGe+nL1U3mFHrbtmsvNWR+oDdUyyOX5KejZqe/80uwDiPNyOJjHWIVuX812AEdAAH94nQnkYr2dBiSu1FPh+auMuk3FfegchKT7pYetqELY3ryLUPEh67PmKrdlT9cQ/wQZROq672AA6qlZAYIooeLZVSzUhABfsITk0RhfcWZGIcZwv0Tja3nnhNgtqCxoTXs6fzfcCaypgwy3F0S4RewUfcz/9g7f0tze1CmWRUtPkNK2nX2/T2AJzHgy+vItwpalnon1egIszJfj7uxp+VotQlQ2PN8sI0J5zgpBFe/lxqEwtIKeiTJ16JlyDXtin/RCjCCdtvIaVCff3Z031UV jspaeth@Jonathons-MBP
225     db_oam_ip_0:
226       label: Database OAM IP Addresse
227       hidden: false
228       immutable: false
229       type: string
230       description: OAM IP Address of the database server
231       default: 10.0.0.20
232     db_vm_role:
233       label: DB VM Role
234       hidden: false
235       immutable: false
236       type: string
237       description: Role for the DB VM
238       default: database
239     db_deploy_timeout:
240       label: Database Deployment Timeout
241       hidden: false
242       immutable: false
243       type: float
244       description: Timeout in seconds before declaring the database stack as failed
245       default: 300
246       constraints:
247       - in_range:
248         - 60
249         - 3600
250   node_templates:
251     app_security_group:
252       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
253       properties:
254         name: app security group
255         rules:
256         - protocol:
257             get_input:
258             - app_protocols
259             - 0
260           port_range_max:
261             get_input:
262             - app_ports
263             - 0
264           port_range_min:
265             get_input:
266             - app_ports
267             - 0
268     common_security_group:
269       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
270       properties:
271         name: common security group
272         rules:
273         - protocol:
274             get_input:
275             - common_protocols
276             - 0
277           port_range_max:
278             get_input:
279             - common_ports
280             - 0
281           port_range_min:
282             get_input:
283             - common_ports
284             - 0
285         - protocol:
286             get_input:
287             - common_protocols
288             - 1
289           port_range_max:
290             get_input:
291             - common_ports
292             - 1
293           port_range_min:
294             get_input:
295             - common_ports
296             - 1
297         - protocol:
298             get_input:
299             - common_protocols
300             - 2
301           port_range_max:
302             get_input:
303             - common_ports
304             - 2
305           port_range_min:
306             get_input:
307             - common_ports
308             - 2
309         - protocol:
310             get_input:
311             - common_protocols
312             - 3
313           port_range_max:
314             get_input:
315             - common_ports
316             - 3
317           port_range_min:
318             get_input:
319             - common_ports
320             - 3
321     db_security_group:
322       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
323       properties:
324         name: data security group
325         rules:
326         - protocol:
327             get_input:
328             - db_protocols
329             - 0
330           port_range_max:
331             get_input:
332             - db_ports
333             - 0
334           port_range_min:
335             get_input:
336             - db_ports
337             - 0
338     db_servers:
339       type: org.openecomp.resource.abstract.nodes.heat.nested_db_server
340       directives:
341       - substitutable
342       properties:
343         vf_module_id:
344           get_input: vf_module_id
345         security_group_ids:
346         - common_security_group
347         - db_security_group
348         vm_role:
349           get_input: db_vm_role
350         service_template_filter:
351           substitute_service_template: nested_db_serverServiceTemplate.yaml
352           count: 1
353           mandatory: true
354         db_name:
355           get_input: db_name
356         vnf_id:
357           get_input: vnf_id
358         server_group_id: db_server_group_group
359         availability_zone_0:
360           get_input: availability_zone_0
361         keypair_id: UNSUPPORTED_RESOURCE_db_keypair
362         db_image_name:
363           get_input: db_image_name
364         db_volume_id_3:
365           get_input: db_volume_id_3
366         db_volume_id_2:
367           get_input: db_volume_id_2
368         oam_net_name:
369           get_input: oam_net_name
370         db_oam_ip_0:
371           get_input: db_oam_ip_0
372         db_flavor_name:
373           get_input: db_flavor_name
374         db_volume_id_1:
375           get_input: db_volume_id_1
376         deploy_timeout:
377           get_input: db_deploy_timeout
378         db_volume_id_0:
379           get_input: db_volume_id_0
380     app_servers:
381       type: org.openecomp.resource.abstract.nodes.heat.nested_app_server
382       directives:
383       - substitutable
384       properties:
385         vf_module_id:
386           get_input: vf_module_id
387         app_flavor_name:
388           get_input: app_flavor_name
389         security_group_ids:
390         - common_security_group
391         - app_security_group
392         vm_role:
393           get_input: app_vm_role
394         app_name:
395           get_input: app_name
396         service_template_filter:
397           substitute_service_template: nested_app_serverServiceTemplate.yaml
398           count: 1
399           mandatory: true
400         vnf_id:
401           get_input: vnf_id
402         app_oam_ip_0:
403           get_input: app_oam_ip_0
404         server_group_id: app_server_group_group
405         availability_zone_0:
406           get_input: availability_zone_0
407         keypair_id: UNSUPPORTED_RESOURCE_app_keypair
408         app_image_name:
409           get_input: app_image_name
410         oam_net_name:
411           get_input: oam_net_name
412         deploy_timeout:
413           get_input: app_deploy_timeout
414   groups:
415     base_pronghorn_group:
416       type: org.openecomp.groups.heat.HeatStack
417       properties:
418         heat_file: ../Artifacts/base_pronghorn.yaml
419         description: Pronghorn Openstack Heat Template
420       members:
421       - app_security_group
422       - common_security_group
423       - db_security_group
424       - db_servers
425       - app_servers
426     db_server_group_group:
427       type: tosca.groups.Root
428       members: [
429         ]
430     app_server_group_group:
431       type: tosca.groups.Root
432       members: [
433         ]
434   outputs:
435     db_volume_id_0:
436       description: IDs of the database volumes
437       value:
438       - UNSUPPORTED_ATTRIBUTE_db_volumes_0.refs
439   policies:
440     app_server_group_policy:
441       type: org.openecomp.policies.placement.Antilocate
442       properties:
443         name: app server group
444         container_type: host
445       targets:
446       - app_server_group_group
447     db_server_group_policy:
448       type: org.openecomp.policies.placement.Antilocate
449       properties:
450         name: data server group
451         container_type: host
452       targets:
453       - db_server_group_group