440984c4194cb37425cfdaf12db93b4c89658050
[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_pd01_port_mac_requirements:
178           mac_count_required:
179             is_required: false
180         vm_image_name:
181           get_input: pd_image_name
182         port_pd02_port_replacement_policy:
183         - AUTO
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         compute_pd_server_user_data_format:
196         - RAW
197         port_pd02_port_mac_requirements:
198           mac_count_required:
199             is_required: false
200         port_pd01_port_network:
201         - packet_mirror_network
202         port_pd02_port_ip_requirements:
203         - ip_version: 4
204           ip_count_required:
205             is_required: false
206           floating_ip_count_required:
207             is_required: false
208         - ip_version: 6
209           ip_count_required:
210             is_required: false
211           floating_ip_count_required:
212             is_required: false
213         port_pd02_port_network:
214         - packet_mirror_network
215         service_template_filter:
216           substitute_service_template: Nested_pd_serverServiceTemplate.yaml
217           count: 1
218         index_value:
219           get_property:
220           - SELF
221           - service_template_filter
222           - index_value
223       requirements:
224       - dependency_pd_server:
225           capability: tosca.capabilities.Node
226           node: packet_mirror_network
227           relationship: tosca.relationships.DependsOn
228       - link_pd_server_pd01_port:
229           capability: tosca.capabilities.network.Linkable
230           node: packet_mirror_network
231           relationship: tosca.relationships.network.LinksTo
232       - link_pd_server_pd02_port:
233           capability: tosca.capabilities.network.Linkable
234           node: packet_mirror_network
235           relationship: tosca.relationships.network.LinksTo
236       - local_storage_pd_server:
237           capability: tosca.capabilities.Attachment
238           node: pd01_volume
239           relationship: pd01_volume_attachment
240   relationship_templates:
241     pd01_volume_attachment:
242       type: org.openecomp.relationships.VolumeAttachesTo
243       properties:
244         volume_id: pd01_volume
245         instance_uuid: abstract_pd_server
246   groups:
247     hot-mog-0108-bs1271_group:
248       type: org.openecomp.groups.heat.HeatStack
249       properties:
250         heat_file: ../Artifacts/hot-mog-0108-bs1271.yml
251         description: heat template that creates MOG stack
252       members:
253       - packet_mirror_network
254       - pd01_volume
255       - abstract_pd_server