7dc3464c69753ede2d2ce11b57a6589287cbd692
[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     dummy_net_name_1:
27       label: csb ineternal cidr
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: dummy_net_name_1
38       type: string
39       description: csb internal cidr
40       default: mog_dummy_1
41     availabilityzone_name:
42       label: availabilityzone 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: availabilityzone_name
53       type: string
54       description: availabilityzone name
55       default: nova
56     packet_internal_network_name:
57       label: packet internal network name
58       hidden: false
59       immutable: false
60       annotations:
61         source:
62           type: org.openecomp.annotations.Source
63           properties:
64             vf_module_label:
65             - hot-mog-0108-bs1271
66             source_type: HEAT
67             param_name: packet_internal_network_name
68       type: string
69       description: name of the network
70     pd_image_name:
71       label: image 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: pd_image_name
82       type: string
83       description: PD image name
84       default: MOG_BASE_8.0
85     pd_server_names:
86       label: PD server names
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_server_names
97       type: list
98       description: name of the PD instance
99       default:
100       - ZRDM1MOGX01MPD001
101       - ZRDM1MOGX01MPD002
102       - ' ZRDM1MOGX01MPD003'
103       entry_schema:
104         type: string
105     oam_net_name:
106       label: oam network name
107       hidden: false
108       immutable: false
109       annotations:
110         source:
111           type: org.openecomp.annotations.Source
112           properties:
113             vf_module_label:
114             - hot-mog-0108-bs1271
115             source_type: HEAT
116             param_name: oam_net_name
117       type: string
118       description: name of the oam network
119   node_templates:
120     packet_external_network:
121       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
122       properties:
123         network_name:
124           get_input: packet_internal_network_name
125     packet_internal_network:
126       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
127       properties:
128         network_name:
129           get_input: packet_internal_network_name
130     abstract_pd_server_2:
131       type: org.openecomp.resource.abstract.nodes.pd_server
132       directives:
133       - substitutable
134       properties:
135         compute_pd_server_availability_zone:
136         - get_input: availabilityzone_name
137         compute_pd_server_name:
138         - get_input:
139           - pd_server_names
140           - 2
141         vm_flavor_name:
142           get_input: pd_flavor_name
143         port_pd01_port_mac_requirements:
144           mac_count_required:
145             is_required: false
146         vm_image_name:
147           get_input: pd_image_name
148         port_pd01_port_ip_requirements:
149         - ip_version: 4
150           ip_count_required:
151             is_required: false
152           floating_ip_count_required:
153             is_required: false
154         - ip_version: 6
155           ip_count_required:
156             is_required: false
157           floating_ip_count_required:
158             is_required: false
159         port_pd01_port_network:
160         - packet_external_network
161         port_pd01_port_subinterface_indicator:
162         - true
163         compute_pd_server_user_data_format:
164         - RAW
165         service_template_filter:
166           substitute_service_template: Nested_pd_serverServiceTemplate.yaml
167           count: 1
168         index_value:
169           get_property:
170           - SELF
171           - service_template_filter
172           - index_value
173       requirements:
174       - link_pd_server_pd01_port:
175           capability: tosca.capabilities.network.Linkable
176           node: packet_external_network
177           relationship: tosca.relationships.network.LinksTo
178     network_policy_server:
179       type: org.openecomp.resource.vfc.rules.nodes.heat.network.contrail.NetworkRules
180       properties:
181         name:
182           get_input: dummy_net_name_1
183     abstract_pd_server_0:
184       type: org.openecomp.resource.abstract.nodes.pd_server
185       directives:
186       - substitutable
187       properties:
188         compute_pd_server_availability_zone:
189         - get_input: availabilityzone_name
190         compute_pd_server_name:
191         - get_input:
192           - pd_server_names
193           - 0
194         vm_flavor_name:
195           get_input: pd_flavor_name
196         port_pd01_port_mac_requirements:
197           mac_count_required:
198             is_required: false
199         vm_image_name:
200           get_input: pd_image_name
201         port_pd01_port_ip_requirements:
202         - ip_version: 4
203           ip_count_required:
204             is_required: false
205           floating_ip_count_required:
206             is_required: false
207         - ip_version: 6
208           ip_count_required:
209             is_required: false
210           floating_ip_count_required:
211             is_required: false
212         port_pd01_port_network:
213         - packet_internal_network
214         port_pd01_port_subinterface_indicator:
215         - true
216         compute_pd_server_user_data_format:
217         - RAW
218         service_template_filter:
219           substitute_service_template: Nested_pd_serverServiceTemplate.yaml
220           count: 1
221         index_value:
222           get_property:
223           - SELF
224           - service_template_filter
225           - index_value
226       requirements:
227       - link_pd_server_pd01_port:
228           capability: tosca.capabilities.network.Linkable
229           node: packet_internal_network
230           relationship: tosca.relationships.network.LinksTo
231     abstract_pd_server_1:
232       type: org.openecomp.resource.abstract.nodes.pd_server
233       directives:
234       - substitutable
235       properties:
236         compute_pd_server_availability_zone:
237         - get_input: availabilityzone_name
238         compute_pd_server_name:
239         - get_input:
240           - pd_server_names
241           - 1
242         vm_flavor_name:
243           get_input: pd_flavor_name
244         port_pd01_port_mac_requirements:
245           mac_count_required:
246             is_required: false
247         vm_image_name:
248           get_input: pd_image_name
249         port_pd01_port_ip_requirements:
250         - ip_version: 4
251           ip_count_required:
252             is_required: false
253           floating_ip_count_required:
254             is_required: false
255         - ip_version: 6
256           ip_count_required:
257             is_required: false
258           floating_ip_count_required:
259             is_required: false
260         port_pd01_port_network:
261         - packet_internal_network
262         port_pd01_port_subinterface_indicator:
263         - true
264         compute_pd_server_user_data_format:
265         - RAW
266         service_template_filter:
267           substitute_service_template: Nested_pd_serverServiceTemplate.yaml
268           count: 1
269         index_value:
270           get_property:
271           - SELF
272           - service_template_filter
273           - index_value
274       requirements:
275       - link_pd_server_pd01_port:
276           capability: tosca.capabilities.network.Linkable
277           node: packet_internal_network
278           relationship: tosca.relationships.network.LinksTo
279   groups:
280     hot-mog-0108-bs1271_group:
281       type: org.openecomp.groups.heat.HeatStack
282       properties:
283         heat_file: ../Artifacts/hot-mog-0108-bs1271.yml
284         description: heat template that creates MOG stack
285       members:
286       - packet_external_network
287       - packet_internal_network
288       - network_policy_server
289       - abstract_pd_server_0
290       - abstract_pd_server_1
291       - abstract_pd_server_2