3ae6fa0b26e944d762053ec1c15f8e960330fbad
[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         port_pd01_port_network:
155         - packet_external_network
156         compute_pd_server_user_data_format:
157         - RAW
158         service_template_filter:
159           substitute_service_template: Nested_pd_serverServiceTemplate.yaml
160           count: 1
161         index_value:
162           get_property:
163           - SELF
164           - service_template_filter
165           - index_value
166       requirements:
167       - link_pd_server_pd01_port:
168           capability: tosca.capabilities.network.Linkable
169           node: packet_external_network
170           relationship: tosca.relationships.network.LinksTo
171     network_policy_server:
172       type: org.openecomp.resource.vfc.rules.nodes.heat.network.contrail.NetworkRules
173       properties:
174         name:
175           get_input: dummy_net_name_1
176     abstract_pd_server_0:
177       type: org.openecomp.resource.abstract.nodes.pd_server
178       directives:
179       - substitutable
180       properties:
181         compute_pd_server_availability_zone:
182         - get_input: availabilityzone_name
183         compute_pd_server_name:
184         - get_input:
185           - pd_server_names
186           - 0
187         vm_flavor_name:
188           get_input: pd_flavor_name
189         port_pd01_port_mac_requirements:
190           mac_count_required:
191             is_required: false
192         vm_image_name:
193           get_input: pd_image_name
194         port_pd01_port_ip_requirements:
195         - ip_version: 4
196           ip_count_required:
197             is_required: false
198           floating_ip_count_required:
199             is_required: false
200         port_pd01_port_network:
201         - packet_internal_network
202         compute_pd_server_user_data_format:
203         - RAW
204         service_template_filter:
205           substitute_service_template: Nested_pd_serverServiceTemplate.yaml
206           count: 1
207         index_value:
208           get_property:
209           - SELF
210           - service_template_filter
211           - index_value
212       requirements:
213       - link_pd_server_pd01_port:
214           capability: tosca.capabilities.network.Linkable
215           node: packet_internal_network
216           relationship: tosca.relationships.network.LinksTo
217     abstract_pd_server_1:
218       type: org.openecomp.resource.abstract.nodes.pd_server
219       directives:
220       - substitutable
221       properties:
222         compute_pd_server_availability_zone:
223         - get_input: availabilityzone_name
224         compute_pd_server_name:
225         - get_input:
226           - pd_server_names
227           - 1
228         vm_flavor_name:
229           get_input: pd_flavor_name
230         port_pd01_port_mac_requirements:
231           mac_count_required:
232             is_required: false
233         vm_image_name:
234           get_input: pd_image_name
235         port_pd01_port_ip_requirements:
236         - ip_version: 4
237           ip_count_required:
238             is_required: false
239           floating_ip_count_required:
240             is_required: false
241         port_pd01_port_network:
242         - packet_internal_network
243         compute_pd_server_user_data_format:
244         - RAW
245         service_template_filter:
246           substitute_service_template: Nested_pd_serverServiceTemplate.yaml
247           count: 1
248         index_value:
249           get_property:
250           - SELF
251           - service_template_filter
252           - index_value
253       requirements:
254       - link_pd_server_pd01_port:
255           capability: tosca.capabilities.network.Linkable
256           node: packet_internal_network
257           relationship: tosca.relationships.network.LinksTo
258   groups:
259     hot-mog-0108-bs1271_group:
260       type: org.openecomp.groups.heat.HeatStack
261       properties:
262         heat_file: ../Artifacts/hot-mog-0108-bs1271.yml
263         description: heat template that creates MOG stack
264       members:
265       - packet_external_network
266       - packet_internal_network
267       - network_policy_server
268       - abstract_pd_server_0
269       - abstract_pd_server_1
270       - abstract_pd_server_2