[sdc] - latest code changes
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / fulltest / scalingInstances / oneComputeTypeOnePortOneGroup / out / 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     pd_flavor_name:
12       label: PD flavor name
13       hidden: false
14       immutable: false
15       type: string
16       description: flavor name of PD instance
17       default: m3.xlarge
18     availabilityzone_name:
19       label: availabilityzone name
20       hidden: false
21       immutable: false
22       type: string
23       description: availabilityzone name
24       default: nova
25     pd_image_name:
26       label: image name
27       hidden: false
28       immutable: false
29       type: string
30       description: PD image name
31       default: MOG_BASE_8.0
32     pd_server_names:
33       label: PD server names
34       hidden: false
35       immutable: false
36       type: list
37       description: name of the PD instance
38       default:
39       - ZRDM1MOGX01MPD001
40       - ZRDM1MOGX01MPD002
41       entry_schema:
42         type: string
43   node_templates:
44     abstract_pd_server:
45       type: org.openecomp.resource.abstract.nodes.pd_server
46       directives:
47       - substitutable
48       properties:
49         compute_pd_server_scheduler_hints:
50         - group: BE_Affinity_group
51         - group: BE_Affinity_group
52         compute_pd_server_availability_zone:
53         - get_input: availabilityzone_name
54         - get_input: availabilityzone_name
55         compute_pd_server_name:
56         - get_input:
57           - pd_server_names
58           - 1
59         - get_input:
60           - pd_server_names
61           - 0
62         port_pd01_port_replacement_policy:
63         - AUTO_PORT_1
64         - AUTO_PORT_0
65         vm_flavor_name:
66           get_input: pd_flavor_name
67         port_pd01_port_mac_requirements:
68           mac_count_required:
69             is_required: false
70         vm_image_name:
71           get_input: pd_image_name
72         port_pd01_port_ip_requirements:
73         - ip_version: 4
74           ip_count_required:
75             is_required: false
76           floating_ip_count_required:
77             is_required: false
78         port_pd01_port_network:
79         - Network-1
80         - Network-0
81         compute_pd_server_user_data_format:
82         - RAW_SERVER_PD_2
83         - RAW_SERVER_PD_1
84         service_template_filter:
85           substitute_service_template: Nested_pd_serverServiceTemplate.yaml
86           count: 2
87         index_value:
88           get_property:
89           - SELF
90           - service_template_filter
91           - index_value
92   groups:
93     hot-mog-0108-bs1271_group:
94       type: org.openecomp.groups.heat.HeatStack
95       properties:
96         heat_file: ../Artifacts/hot-mog-0108-bs1271.yml
97         description: heat template that creates MOG stack
98       members:
99       - abstract_pd_server
100     BE_Affinity_group:
101       type: tosca.groups.Root
102       members:
103       - abstract_pd_server
104   policies:
105     BE_Affinity_policy:
106       type: org.openecomp.policies.placement.Colocate
107       properties:
108         name: Policy_BE_Affinity
109         affinity: host
110       targets:
111       - BE_Affinity_group