cbffa79eb22fdaf07b9e59260a4a6201ab54a380
[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     diff_image_name:
120       label: image name
121       hidden: false
122       immutable: false
123       annotations:
124         source:
125           type: org.openecomp.annotations.Source
126           properties:
127             vf_module_label:
128             - hot-mog-0108-bs1271
129             source_type: HEAT
130             param_name: diff_image_name
131       type: string
132       description: PD image name
133   node_templates:
134     pd01_port_2:
135       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
136       properties:
137         ip_requirements:
138         - ip_version: 4
139           ip_count_required:
140             is_required: false
141           floating_ip_count_required:
142             is_required: false
143         - ip_version: 6
144           ip_count_required:
145             is_required: false
146           floating_ip_count_required:
147             is_required: false
148         mac_requirements:
149           mac_count_required:
150             is_required: false
151         network: packet_internal_network
152       requirements:
153       - link:
154           capability: tosca.capabilities.network.Linkable
155           node: packet_internal_network
156           relationship: tosca.relationships.network.LinksTo
157     packet_internal_network:
158       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
159       properties:
160         network_name:
161           get_input: packet_internal_network_name
162     abstract_pd_server_0:
163       type: org.openecomp.resource.abstract.nodes.pd_server
164       directives:
165       - substitutable
166       properties:
167         compute_pd_server_key_name:
168         - key_name
169         compute_pd_server_availability_zone:
170         - get_input: availabilityzone_name
171         compute_pd_server_name:
172         - get_input:
173           - pd_server_names
174           - 0
175         compute_pd_server_image_update_policy:
176         - image_update_policy
177         vm_flavor_name:
178           get_input: pd_flavor_name
179         port_pd01_port_mac_requirements:
180           mac_count_required:
181             is_required: false
182         vm_image_name:
183           get_input: pd_image_name
184         port_pd01_port_ip_requirements:
185         - ip_version: 4
186           ip_count_required:
187             is_required: false
188           floating_ip_count_required:
189             is_required: false
190         - ip_version: 6
191           ip_count_required:
192             is_required: false
193           floating_ip_count_required:
194             is_required: false
195         port_pd01_port_network:
196         - packet_internal_network
197         compute_pd_server_user_data_format:
198         - RAW
199         service_template_filter:
200           substitute_service_template: Nested_pd_serverServiceTemplate.yaml
201           count: 1
202         index_value:
203           get_property:
204           - SELF
205           - service_template_filter
206           - index_value
207       requirements:
208       - link_pd_server_pd01_port:
209           capability: tosca.capabilities.network.Linkable
210           node: packet_internal_network
211           relationship: tosca.relationships.network.LinksTo
212     abstract_pd_server_1:
213       type: org.openecomp.resource.abstract.nodes.pd_server
214       directives:
215       - substitutable
216       properties:
217         compute_pd_server_key_name:
218         - key_name
219         compute_pd_server_availability_zone:
220         - get_input: availabilityzone_name
221         compute_pd_server_name:
222         - get_input:
223           - pd_server_names
224           - 1
225         compute_pd_server_personality:
226         - personality
227         vm_flavor_name:
228           get_input: pd_flavor_name
229         port_pd01_port_mac_requirements:
230           mac_count_required:
231             is_required: false
232         vm_image_name:
233           get_input: diff_image_name
234         port_pd01_port_ip_requirements:
235         - ip_version: 4
236           ip_count_required:
237             is_required: false
238           floating_ip_count_required:
239             is_required: false
240         - ip_version: 6
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         compute_pd_server_user_data_format:
248         - RAW
249         service_template_filter:
250           substitute_service_template: Nested_pd_serverServiceTemplate.yaml
251           count: 1
252         index_value:
253           get_property:
254           - SELF
255           - service_template_filter
256           - index_value
257       requirements:
258       - link_pd_server_pd01_port:
259           capability: tosca.capabilities.network.Linkable
260           node: packet_internal_network
261           relationship: tosca.relationships.network.LinksTo
262   groups:
263     hot-mog-0108-bs1271_group:
264       type: org.openecomp.groups.heat.HeatStack
265       properties:
266         heat_file: ../Artifacts/hot-mog-0108-bs1271.yml
267         description: heat template that creates MOG stack
268       members:
269       - pd01_port_2
270       - packet_internal_network
271       - abstract_pd_server_0
272       - abstract_pd_server_1