e4af3e8e9aca45d5a1967eb544df2c03cd7b2c5b
[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     pd01_cinder_volume_size:
42       label: volume size
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: pd01_cinder_volume_size
53       type: string
54       description: volume size
55       default: 1024
56     oam_flavor_name:
57       label: OAM flavor 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: oam_flavor_name
68       type: string
69       description: flavor name of OAM instance
70       default: m3.xlarge
71     pd_image_name:
72       label: image name
73       hidden: false
74       immutable: false
75       annotations:
76         source:
77           type: org.openecomp.annotations.Source
78           properties:
79             vf_module_label:
80             - hot-mog-0108-bs1271
81             source_type: HEAT
82             param_name: pd_image_name
83       type: string
84       description: PD image name
85       default: MOG_BASE_8.0
86     packet_mirror_network_name:
87       label: packet mirror network name
88       hidden: false
89       immutable: false
90       annotations:
91         source:
92           type: org.openecomp.annotations.Source
93           properties:
94             vf_module_label:
95             - hot-mog-0108-bs1271
96             source_type: HEAT
97             param_name: packet_mirror_network_name
98       type: string
99       description: name of the network
100       default: packet-net-1
101     pd_server_names:
102       label: PD server names
103       hidden: false
104       immutable: false
105       annotations:
106         source:
107           type: org.openecomp.annotations.Source
108           properties:
109             vf_module_label:
110             - hot-mog-0108-bs1271
111             source_type: HEAT
112             param_name: pd_server_names
113       type: list
114       description: name of the PD instance
115       default:
116       - ZRDM1MOGX01MPD001
117       - ZRDM1MOGX01MPD002
118       entry_schema:
119         type: string
120     pd01_volume_type:
121       label: volume type
122       hidden: false
123       immutable: false
124       annotations:
125         source:
126           type: org.openecomp.annotations.Source
127           properties:
128             vf_module_label:
129             - hot-mog-0108-bs1271
130             source_type: HEAT
131             param_name: pd01_volume_type
132       type: string
133       description: volume type
134       default: volume_type_1
135     oam_net_name:
136       label: oam network name
137       hidden: false
138       immutable: false
139       annotations:
140         source:
141           type: org.openecomp.annotations.Source
142           properties:
143             vf_module_label:
144             - hot-mog-0108-bs1271
145             source_type: HEAT
146             param_name: oam_net_name
147       type: string
148       description: name of the oam network
149       default: oam_protected_net_0
150   node_templates:
151     packet_mirror_network:
152       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
153       properties:
154         network_name:
155           get_input: packet_mirror_network_name
156     pd01_volume:
157       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
158       properties:
159         volume_type:
160           get_input: pd01_volume_type
161         size: '(get_input : pd01_cinder_volume_size) * 1024'
162     abstract_pd_server:
163       type: org.openecomp.resource.abstract.nodes.pd_server
164       directives:
165       - substitutable
166       properties:
167         compute_pd_server_availability_zone:
168         - get_input: availabilityzone_name
169         compute_pd_server_name:
170         - get_input:
171           - pd_server_names
172           - 0
173         port_pd01_port_replacement_policy:
174         - AUTO
175         vm_flavor_name:
176           get_input: pd_flavor_name
177         port_pd02_port_subinterface_indicator:
178         - false
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_pd02_port_replacement_policy:
185         - AUTO
186         port_pd01_port_ip_requirements:
187         - ip_version: 4
188           ip_count_required:
189             is_required: false
190           floating_ip_count_required:
191             is_required: false
192         - ip_version: 6
193           ip_count_required:
194             is_required: false
195           floating_ip_count_required:
196             is_required: false
197         port_pd01_port_subinterface_indicator:
198         - false
199         compute_pd_server_user_data_format:
200         - RAW
201         port_pd02_port_mac_requirements:
202           mac_count_required:
203             is_required: false
204         port_pd01_port_network:
205         - packet_mirror_network
206         port_pd02_port_ip_requirements:
207         - ip_version: 4
208           ip_count_required:
209             is_required: false
210           floating_ip_count_required:
211             is_required: false
212         - ip_version: 6
213           ip_count_required:
214             is_required: false
215           floating_ip_count_required:
216             is_required: false
217         port_pd02_port_network:
218         - packet_mirror_network
219         service_template_filter:
220           substitute_service_template: Nested_pd_serverServiceTemplate.yaml
221           count: 1
222         index_value:
223           get_property:
224           - SELF
225           - service_template_filter
226           - index_value
227       requirements:
228       - dependency_pd_server:
229           capability: tosca.capabilities.Node
230           node: packet_mirror_network
231           relationship: tosca.relationships.DependsOn
232       - link_pd_server_pd01_port:
233           capability: tosca.capabilities.network.Linkable
234           node: packet_mirror_network
235           relationship: tosca.relationships.network.LinksTo
236       - link_pd_server_pd02_port:
237           capability: tosca.capabilities.network.Linkable
238           node: packet_mirror_network
239           relationship: tosca.relationships.network.LinksTo
240       - local_storage_pd_server:
241           capability: tosca.capabilities.Attachment
242           node: pd01_volume
243           relationship: pd01_volume_attachment
244   relationship_templates:
245     pd01_volume_attachment:
246       type: org.openecomp.relationships.VolumeAttachesTo
247       properties:
248         volume_id: pd01_volume
249         instance_uuid: abstract_pd_server
250   groups:
251     hot-mog-0108-bs1271_group:
252       type: org.openecomp.groups.heat.HeatStack
253       properties:
254         heat_file: ../Artifacts/hot-mog-0108-bs1271.yml
255         description: heat template that creates MOG stack
256       members:
257       - packet_mirror_network
258       - pd01_volume
259       - abstract_pd_server