[sdc] docker file fix for cassandra
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / global_types / expectedoutputfiles / MainServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
4 imports:
5   ContrailComputeGlobalTypes:
6     file: ContrailComputeGlobalTypesServiceTemplate.yaml
7   CinderVolumeGlobalTypes:
8     file: CinderVolumeGlobalTypesServiceTemplate.yaml
9   ContrailVirtualNetworkGlobalType:
10     file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml
11   AbstractSubstituteGlobalTypes:
12     file: AbstractSubstituteGlobalTypesServiceTemplate.yaml
13   ContrailPortGlobalTypes:
14     file: ContrailPortGlobalTypesServiceTemplate.yaml
15   NeutronPortGlobalTypes:
16     file: NeutronPortGlobalTypesServiceTemplate.yaml
17   NeutronNetGlobalTypes:
18     file: NeutronNetGlobalTypesServiceTemplate.yaml
19   CommonGlobalTypes:
20     file: CommonGlobalTypesServiceTemplate.yaml
21   ContrailAbstractSubstituteGlobalTypes:
22     file: ContrailAbstractSubstituteGlobalTypesServiceTemplate.yaml
23   ContrailNetworkRuleGlobalType:
24     file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml
25   NeutronSecurityRulesGlobalTypes:
26     file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml
27   NovaServerGlobalTypes:
28     file: NovaServerGlobalTypesServiceTemplate.yaml
29   ContrailV2VirtualMachineInterfaceGlobalType:
30     file: ContrailV2VirtualMachineInterfaceGlobalTypeServiceTemplate.yaml
31 node_types:
32   org.openecomp.resource.vfc.nodes.heat.cmaui:
33     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
34 topology_template:
35   inputs:
36     cmaui_names:
37       hidden: false
38       immutable: false
39       type: list
40       description: CMAUI1, CMAUI2 server names
41       entry_schema:
42         type: string
43     cmaui_cinder_volume_size:
44       label: CMAUI Cinder volume size
45       hidden: false
46       immutable: false
47       type: float
48       description: the size of the CMAUI Cinder volume
49     timezone:
50       label: timezone
51       hidden: false
52       immutable: false
53       type: string
54       description: timezone
55     security_group_name:
56       label: security group name
57       hidden: false
58       immutable: false
59       type: string
60       description: the name of security group
61     oam_network_netmask:
62       label: oam network netmask
63       hidden: false
64       immutable: false
65       type: string
66       description: oam network gateway
67     cmaui_image:
68       hidden: false
69       immutable: false
70       type: string
71       description: Image for CMAUI server
72     vnf_id:
73       hidden: false
74       immutable: false
75       type: string
76       description: Unique ID for this VNF instance
77       default: This_is_ths_MMSC-CMAUI_id
78     cmaui_flavor:
79       hidden: false
80       immutable: false
81       type: string
82       description: Flavor for CMAUI server
83     oam_network_gateway:
84       label: oam network gateway
85       hidden: false
86       immutable: false
87       type: string
88       description: oam network gateway
89     availability_zone_0:
90       label: availabilityzone name
91       hidden: false
92       immutable: false
93       type: string
94       description: availabilityzone name
95     cmaui_oam_ips:
96       label: CMAUI oam_net IP addresses
97       hidden: false
98       immutable: false
99       type: list
100       description: CMAUI oam_net IP addresses
101       entry_schema:
102         type: string
103     external_dns:
104       label: dns server
105       hidden: false
106       immutable: false
107       type: string
108       description: dns server
109     oam_net_name:
110       hidden: false
111       immutable: false
112       type: string
113       description: UID of OAM network
114     external_ntp:
115       label: ntp server
116       hidden: false
117       immutable: false
118       type: string
119       description: ntp server
120     CMAUI_volume_type:
121       label: CMAUI vm volume type
122       hidden: false
123       immutable: false
124       type: string
125       description: the name of the target volume backend
126   node_templates:
127     server_cmaui:
128       type: org.openecomp.resource.vfc.nodes.heat.cmaui
129       properties:
130         flavor:
131           get_input: cmaui_flavor
132         availability_zone:
133           get_input: availability_zone_0
134         image:
135           get_input: cmaui_image
136         metadata:
137           vnf_id:
138             get_input: vnf_id
139         user_data_format: RAW
140         name:
141           get_input:
142           - cmaui_names
143           - 0
144       requirements:
145       - dependency:
146           capability: tosca.capabilities.Node
147           node: cmaui_volume
148           relationship: tosca.relationships.DependsOn
149       - dependency:
150           capability: tosca.capabilities.Node
151           node: cmaui_port_0
152           relationship: tosca.relationships.DependsOn
153       - local_storage:
154           capability: tosca.capabilities.Attachment
155           node: cmaui_volume
156           relationship: cmaui_volume_attachment
157     cmaui_volume:
158       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
159       properties:
160         volume_type:
161           get_input: CMAUI_volume_type
162         size: '(get_input : cmaui_cinder_volume_size) * 1024'
163     cmaui_port_0:
164       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
165       properties:
166         replacement_policy: AUTO
167         security_groups:
168         - get_input: security_group_name
169         fixed_ips:
170         - ip_address:
171             get_input:
172             - cmaui_oam_ips
173             - 0
174         network:
175           get_input: oam_net_name
176       requirements:
177       - binding:
178           capability: tosca.capabilities.network.Bindable
179           node: server_cmaui
180           relationship: tosca.relationships.network.BindsTo
181   relationship_templates:
182     cmaui_volume_attachment:
183       type: org.openecomp.relationships.heat.cinder.VolumeAttachesTo
184       properties:
185         volume_id: cmaui_volume
186         instance_uuid: server_cmaui
187   groups:
188     hot_template:
189       type: org.openecomp.groups.heat.HeatStack
190       properties:
191         heat_file: ../Artifacts/hot_template.yml
192         description: cmaui server template for vMMSC
193       members:
194       - server_cmaui
195       - cmaui_volume
196       - cmaui_port_0