3833ca788402129f1921ce48da0feaacfbf0ec44
[sdc.git] /
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       annotations:
16         source:
17           type: org.openecomp.annotations.Source
18           properties:
19             vf_module_label:
20             - hot-mog-0108-bs1271
21             source_type: HEAT
22             param_name: pd_flavor_name
23       type: string
24       description: flavor name of PD instance
25       default: m3.xlarge
26     availabilityzone_name:
27       label: availabilityzone name
28       hidden: false
29       immutable: false
30       annotations:
31         source:
32           type: org.openecomp.annotations.Source
33           properties:
34             vf_module_label:
35             - hot-mog-0108-bs1271
36             source_type: HEAT
37             param_name: availabilityzone_name
38       type: string
39       description: availabilityzone name
40       default: nova
41     packet_internal_network_name:
42       label: packet internal network name
43       hidden: false
44       immutable: false
45       annotations:
46         source:
47           type: org.openecomp.annotations.Source
48           properties:
49             vf_module_label:
50             - hot-mog-0108-bs1271
51             source_type: HEAT
52             param_name: packet_internal_network_name
53       type: string
54       description: name of the network
55     pd01_cinder_volume_size:
56       label: volume size
57       hidden: false
58       immutable: false
59       annotations:
60         source:
61           type: org.openecomp.annotations.Source
62           properties:
63             vf_module_label:
64             - hot-mog-0108-bs1271
65             source_type: HEAT
66             param_name: pd01_cinder_volume_size
67       type: string
68       description: volume size
69       default: 1024
70     oam_flavor_name:
71       label: OAM flavor name
72       hidden: false
73       immutable: false
74       annotations:
75         source:
76           type: org.openecomp.annotations.Source
77           properties:
78             vf_module_label:
79             - hot-mog-0108-bs1271
80             source_type: HEAT
81             param_name: oam_flavor_name
82       type: string
83       description: flavor name of OAM instance
84       default: m3.xlarge
85     pd_image_name:
86       label: image name
87       hidden: false
88       immutable: false
89       annotations:
90         source:
91           type: org.openecomp.annotations.Source
92           properties:
93             vf_module_label:
94             - hot-mog-0108-bs1271
95             source_type: HEAT
96             param_name: pd_image_name
97       type: string
98       description: PD image name
99       default: MOG_BASE_8.0
100     packet_mirror_network_name:
101       label: packet mirror network name
102       hidden: false
103       immutable: false
104       annotations:
105         source:
106           type: org.openecomp.annotations.Source
107           properties:
108             vf_module_label:
109             - hot-mog-0108-bs1271
110             source_type: HEAT
111             param_name: packet_mirror_network_name
112       type: string
113       description: name of the network
114       default: packet-net-1
115     pd_server_names:
116       label: PD server names
117       hidden: false
118       immutable: false
119       annotations:
120         source:
121           type: org.openecomp.annotations.Source
122           properties:
123             vf_module_label:
124             - hot-mog-0108-bs1271
125             source_type: HEAT
126             param_name: pd_server_names
127       type: list
128       description: name of the PD instance
129       default:
130       - ZRDM1MOGX01MPD001
131       - ZRDM1MOGX01MPD002
132       entry_schema:
133         type: string
134     pd01_volume_type:
135       label: volume type
136       hidden: false
137       immutable: false
138       annotations:
139         source:
140           type: org.openecomp.annotations.Source
141           properties:
142             vf_module_label:
143             - hot-mog-0108-bs1271
144             source_type: HEAT
145             param_name: pd01_volume_type
146       type: string
147       description: volume type
148       default: volume_type_1
149     oam_net_name:
150       label: oam network name
151       hidden: false
152       immutable: false
153       annotations:
154         source:
155           type: org.openecomp.annotations.Source
156           properties:
157             vf_module_label:
158             - hot-mog-0108-bs1271
159             source_type: HEAT
160             param_name: oam_net_name
161       type: string
162       description: name of the oam network
163       default: oam_protected_net_0
164   node_templates:
165     packet_mirror_network:
166       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
167       properties:
168         network_name:
169           get_input: packet_mirror_network_name
170     pd01_volume:
171       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
172       properties:
173         volume_type:
174           get_input: pd01_volume_type
175         size: '(get_input : pd01_cinder_volume_size) * 1024'
176     packet_internal_network:
177       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
178       properties:
179         network_name:
180           get_input: packet_internal_network_name
181     abstract_pd_server:
182       type: org.openecomp.resource.abstract.nodes.pd_server
183       directives:
184       - substitutable
185       properties:
186         port_pd01_port_0_mac_requirements:
187           mac_count_required:
188             is_required: false
189         port_pd01_port_0_network:
190         - packet_mirror_network
191         port_pd01_port_0_ip_requirements:
192         - ip_version: 4
193           ip_count_required:
194             is_required: false
195           floating_ip_count_required:
196             is_required: false
197         - ip_version: 6
198           ip_count_required:
199             is_required: false
200           floating_ip_count_required:
201             is_required: false
202         compute_pd_server_availability_zone:
203         - get_input: availabilityzone_name
204         compute_pd_server_name:
205         - get_input:
206           - pd_server_names
207           - 0
208         port_pd01_port_0_subinterface_indicator:
209         - false
210         port_pd01_port_0_replacement_policy:
211         - AUTO
212         vm_flavor_name:
213           get_input: pd_flavor_name
214         vm_image_name:
215           get_input: pd_image_name
216         port_pd01_port_1_network:
217         - packet_internal_network
218         compute_pd_server_user_data_format:
219         - RAW
220         port_pd01_port_1_ip_requirements:
221         - ip_version: 4
222           ip_count_required:
223             is_required: false
224           floating_ip_count_required:
225             is_required: false
226         - ip_version: 6
227           ip_count_required:
228             is_required: false
229           floating_ip_count_required:
230             is_required: false
231         port_pd01_port_1_subinterface_indicator:
232         - false
233         port_pd01_port_1_mac_requirements:
234           mac_count_required:
235             is_required: false
236         port_pd01_port_1_replacement_policy:
237         - AUTO
238         service_template_filter:
239           substitute_service_template: Nested_pd_serverServiceTemplate.yaml
240           count: 1
241         index_value:
242           get_property:
243           - SELF
244           - service_template_filter
245           - index_value
246       requirements:
247       - dependency_pd_server:
248           capability: tosca.capabilities.Node
249           node: packet_mirror_network
250           relationship: tosca.relationships.DependsOn
251       - link_pd_server_pd01_port_0:
252           capability: tosca.capabilities.network.Linkable
253           node: packet_mirror_network
254           relationship: tosca.relationships.network.LinksTo
255       - link_pd_server_pd01_port_1:
256           capability: tosca.capabilities.network.Linkable
257           node: packet_internal_network
258           relationship: tosca.relationships.network.LinksTo
259       - local_storage_pd_server:
260           capability: tosca.capabilities.Attachment
261           node: pd01_volume
262           relationship: pd01_volume_attachment
263   relationship_templates:
264     pd01_volume_attachment:
265       type: org.openecomp.relationships.VolumeAttachesTo
266       properties:
267         volume_id: pd01_volume
268         instance_uuid: abstract_pd_server
269   groups:
270     hot-mog-0108-bs1271_group:
271       type: org.openecomp.groups.heat.HeatStack
272       properties:
273         heat_file: ../Artifacts/hot-mog-0108-bs1271.yml
274         description: heat template that creates MOG stack
275       members:
276       - packet_mirror_network
277       - pd01_volume
278       - packet_internal_network
279       - abstract_pd_server