420e802a288de62e964fa3670d600189656cd7f3
[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     availabilityzone_name:
27       label: availabilityzone name
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: availabilityzone_name
38       type: string
39       description: availabilityzone name
40       default: nova
41     packet_internal_network_name:
42       label: packet internal network 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: packet_internal_network_name
53       type: string
54       description: name of the network
55     pd01_cinder_volume_size:
56       label: volume size
57       hidden: false
58       immutable: false
59       annotations:
60         source:
61           type: org.openecomp.annotations.Source
62           properties:
63             vf_module_label:
64             - hot-mog-0108-bs1271
65             source_type: HEAT
66             param_name: pd01_cinder_volume_size
67       type: string
68       description: volume size
69       default: 1024
70     oam_flavor_name:
71       label: OAM flavor 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: oam_flavor_name
82       type: string
83       description: flavor name of OAM instance
84       default: m3.xlarge
85     pd_image_name:
86       label: image name
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_image_name
97       type: string
98       description: PD image name
99       default: MOG_BASE_8.0
100     packet_mirror_network_name:
101       label: packet mirror network name
102       hidden: false
103       immutable: false
104       annotations:
105         source:
106           type: org.openecomp.annotations.Source
107           properties:
108             vf_module_label:
109             - hot-mog-0108-bs1271
110             source_type: HEAT
111             param_name: packet_mirror_network_name
112       type: string
113       description: name of the network
114       default: packet-net-1
115     pd_server_names:
116       label: PD server names
117       hidden: false
118       immutable: false
119       annotations:
120         source:
121           type: org.openecomp.annotations.Source
122           properties:
123             vf_module_label:
124             - hot-mog-0108-bs1271
125             source_type: HEAT
126             param_name: pd_server_names
127       type: list
128       description: name of the PD instance
129       default:
130       - ZRDM1MOGX01MPD001
131       - ZRDM1MOGX01MPD002
132       entry_schema:
133         type: string
134     pd01_volume_type:
135       label: volume type
136       hidden: false
137       immutable: false
138       annotations:
139         source:
140           type: org.openecomp.annotations.Source
141           properties:
142             vf_module_label:
143             - hot-mog-0108-bs1271
144             source_type: HEAT
145             param_name: pd01_volume_type
146       type: string
147       description: volume type
148       default: volume_type_1
149     oam_net_name:
150       label: oam network name
151       hidden: false
152       immutable: false
153       annotations:
154         source:
155           type: org.openecomp.annotations.Source
156           properties:
157             vf_module_label:
158             - hot-mog-0108-bs1271
159             source_type: HEAT
160             param_name: oam_net_name
161       type: string
162       description: name of the oam network
163       default: oam_protected_net_0
164   node_templates:
165     packet_mirror_network:
166       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
167       properties:
168         network_name:
169           get_input: packet_mirror_network_name
170     pd01_volume:
171       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
172       properties:
173         volume_type:
174           get_input: pd01_volume_type
175         size: '(get_input : pd01_cinder_volume_size) * 1024'
176     packet_internal_network:
177       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
178       properties:
179         network_name:
180           get_input: packet_internal_network_name
181     abstract_pd_server:
182       type: org.openecomp.resource.abstract.nodes.pd_server
183       directives:
184       - substitutable
185       properties:
186         port_pd01_port_0_mac_requirements:
187           mac_count_required:
188             is_required: false
189         port_pd01_port_0_network:
190         - packet_mirror_network
191         port_pd01_port_0_ip_requirements:
192         - ip_version: 4
193           ip_count_required:
194             is_required: false
195           floating_ip_count_required:
196             is_required: false
197         compute_pd_server_availability_zone:
198         - get_input: availabilityzone_name
199         compute_pd_server_name:
200         - get_input:
201           - pd_server_names
202           - 0
203         port_pd01_port_0_subinterface_indicator:
204         - false
205         port_pd01_port_0_replacement_policy:
206         - AUTO
207         vm_flavor_name:
208           get_input: pd_flavor_name
209         vm_image_name:
210           get_input: pd_image_name
211         port_pd01_port_1_network:
212         - packet_internal_network
213         compute_pd_server_user_data_format:
214         - RAW
215         port_pd01_port_1_ip_requirements:
216         - ip_version: 4
217           ip_count_required:
218             is_required: false
219           floating_ip_count_required:
220             is_required: false
221         port_pd01_port_1_subinterface_indicator:
222         - false
223         port_pd01_port_1_mac_requirements:
224           mac_count_required:
225             is_required: false
226         port_pd01_port_1_replacement_policy:
227         - AUTO
228         service_template_filter:
229           substitute_service_template: Nested_pd_serverServiceTemplate.yaml
230           count: 1
231         index_value:
232           get_property:
233           - SELF
234           - service_template_filter
235           - index_value
236       requirements:
237       - dependency_pd_server:
238           capability: tosca.capabilities.Node
239           node: packet_mirror_network
240           relationship: tosca.relationships.DependsOn
241       - link_pd_server_pd01_port_0:
242           capability: tosca.capabilities.network.Linkable
243           node: packet_mirror_network
244           relationship: tosca.relationships.network.LinksTo
245       - link_pd_server_pd01_port_1:
246           capability: tosca.capabilities.network.Linkable
247           node: packet_internal_network
248           relationship: tosca.relationships.network.LinksTo
249       - local_storage_pd_server:
250           capability: tosca.capabilities.Attachment
251           node: pd01_volume
252           relationship: pd01_volume_attachment
253   relationship_templates:
254     pd01_volume_attachment:
255       type: org.openecomp.relationships.VolumeAttachesTo
256       properties:
257         volume_id: pd01_volume
258         instance_uuid: abstract_pd_server
259   groups:
260     hot-mog-0108-bs1271_group:
261       type: org.openecomp.groups.heat.HeatStack
262       properties:
263         heat_file: ../Artifacts/hot-mog-0108-bs1271.yml
264         description: heat template that creates MOG stack
265       members:
266       - packet_mirror_network
267       - pd01_volume
268       - packet_internal_network
269       - abstract_pd_server