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