064f1e510ac5499eca0e4b424c9ff08908cef7c9
[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         mac_requirements:
144           mac_count_required:
145             is_required: false
146         network: packet_internal_network
147       requirements:
148       - link:
149           capability: tosca.capabilities.network.Linkable
150           node: packet_internal_network
151           relationship: tosca.relationships.network.LinksTo
152     packet_internal_network:
153       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
154       properties:
155         network_name:
156           get_input: packet_internal_network_name
157     abstract_pd_server_0:
158       type: org.openecomp.resource.abstract.nodes.pd_server
159       directives:
160       - substitutable
161       properties:
162         compute_pd_server_key_name:
163         - key_name
164         compute_pd_server_availability_zone:
165         - get_input: availabilityzone_name
166         compute_pd_server_name:
167         - get_input:
168           - pd_server_names
169           - 0
170         compute_pd_server_image_update_policy:
171         - image_update_policy
172         vm_flavor_name:
173           get_input: pd_flavor_name
174         port_pd01_port_mac_requirements:
175           mac_count_required:
176             is_required: false
177         vm_image_name:
178           get_input: pd_image_name
179         port_pd01_port_ip_requirements:
180         - ip_version: 4
181           ip_count_required:
182             is_required: false
183           floating_ip_count_required:
184             is_required: false
185         port_pd01_port_network:
186         - packet_internal_network
187         port_pd01_port_subinterface_indicator:
188         - false
189         compute_pd_server_user_data_format:
190         - RAW
191         service_template_filter:
192           substitute_service_template: Nested_pd_serverServiceTemplate.yaml
193           count: 1
194         index_value:
195           get_property:
196           - SELF
197           - service_template_filter
198           - index_value
199       requirements:
200       - link_pd_server_pd01_port:
201           capability: tosca.capabilities.network.Linkable
202           node: packet_internal_network
203           relationship: tosca.relationships.network.LinksTo
204     abstract_pd_server_1:
205       type: org.openecomp.resource.abstract.nodes.pd_server
206       directives:
207       - substitutable
208       properties:
209         compute_pd_server_key_name:
210         - key_name
211         compute_pd_server_availability_zone:
212         - get_input: availabilityzone_name
213         compute_pd_server_name:
214         - get_input:
215           - pd_server_names
216           - 1
217         compute_pd_server_personality:
218         - personality
219         vm_flavor_name:
220           get_input: pd_flavor_name
221         port_pd01_port_mac_requirements:
222           mac_count_required:
223             is_required: false
224         vm_image_name:
225           get_input: diff_image_name
226         port_pd01_port_ip_requirements:
227         - ip_version: 4
228           ip_count_required:
229             is_required: false
230           floating_ip_count_required:
231             is_required: false
232         port_pd01_port_network:
233         - packet_internal_network
234         port_pd01_port_subinterface_indicator:
235         - false
236         compute_pd_server_user_data_format:
237         - RAW
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       - link_pd_server_pd01_port:
248           capability: tosca.capabilities.network.Linkable
249           node: packet_internal_network
250           relationship: tosca.relationships.network.LinksTo
251   groups:
252     hot-mog-0108-bs1271_group:
253       type: org.openecomp.groups.heat.HeatStack
254       properties:
255         heat_file: ../Artifacts/hot-mog-0108-bs1271.yml
256         description: heat template that creates MOG stack
257       members:
258       - pd01_port_2
259       - packet_internal_network
260       - abstract_pd_server_0
261       - abstract_pd_server_1