ab8de4df45f51f06c6be91488a2058137a22429e
[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     pd_image_name:
56       label: image name
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: pd_image_name
67       type: string
68       description: PD image name
69       default: MOG_BASE_8.0
70     packet_mirror_network_name:
71       label: packet mirror network 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: packet_mirror_network_name
82       type: string
83       description: name of the network
84     pd_server_names:
85       label: PD server names
86       hidden: false
87       immutable: false
88       annotations:
89         source:
90           type: org.openecomp.annotations.Source
91           properties:
92             vf_module_label:
93             - hot-mog-0108-bs1271
94             source_type: HEAT
95             param_name: pd_server_names
96       type: list
97       description: name of the PD instance
98       default:
99       - ZRDM1MOGX01MPD001
100       - ZRDM1MOGX01MPD002
101       entry_schema:
102         type: string
103     pd01_volume_type:
104       label: volume type
105       hidden: false
106       immutable: false
107       annotations:
108         source:
109           type: org.openecomp.annotations.Source
110           properties:
111             vf_module_label:
112             - hot-mog-0108-bs1271
113             source_type: HEAT
114             param_name: pd01_volume_type
115       type: string
116       description: volume type
117   node_templates:
118     packet_mirror_network:
119       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
120       properties:
121         network_name:
122           get_input: packet_mirror_network_name
123     pd01_volume:
124       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
125       properties:
126         volume_type:
127           get_input: pd01_volume_type
128         size: '(get_input : pd01_cinder_volume_size) * 1024'
129     abstract_pd_server:
130       type: org.openecomp.resource.abstract.nodes.pd_server
131       directives:
132       - substitutable
133       properties:
134         compute_pd_server_availability_zone:
135         - get_input: availabilityzone_name
136         - get_input: availabilityzone_name
137         compute_pd_server_name:
138         - get_input:
139           - pd_server_names
140           - 1
141         - get_input:
142           - pd_server_names
143           - 0
144         port_pd01_port_replacement_policy:
145         - AUTO_PORT_1
146         - AUTO_PORT_0
147         vm_flavor_name:
148           get_input: pd_flavor_name
149         port_pd01_port_mac_requirements:
150           mac_count_required:
151             is_required: false
152         vm_image_name:
153           get_input: pd_image_name
154         port_pd01_port_ip_requirements:
155         - - ip_version: 4
156             ip_count_required:
157               is_required: false
158             floating_ip_count_required:
159               is_required: false
160           - ip_version: 6
161             ip_count_required:
162               is_required: false
163             floating_ip_count_required:
164               is_required: false
165         - - ip_version: 4
166             ip_count_required:
167               is_required: false
168             floating_ip_count_required:
169               is_required: false
170           - ip_version: 6
171             ip_count_required:
172               is_required: false
173             floating_ip_count_required:
174               is_required: false
175         port_pd01_port_network:
176         - packet_mirror_network
177         - packet_mirror_network
178         port_pd01_port_subinterface_indicator:
179         - false
180         - false
181         compute_pd_server_user_data_format:
182         - RAW_SERVER_PD_2
183         - RAW_SERVER_PD_1
184         service_template_filter:
185           substitute_service_template: Nested_pd_serverServiceTemplate.yaml
186           count: 2
187         index_value:
188           get_property:
189           - SELF
190           - service_template_filter
191           - index_value
192       requirements:
193       - dependency_pd_server:
194           capability: tosca.capabilities.Node
195           node: packet_mirror_network
196           relationship: tosca.relationships.DependsOn
197       - link_pd_server_pd01_port:
198           capability: tosca.capabilities.network.Linkable
199           node: packet_mirror_network
200           relationship: tosca.relationships.network.LinksTo
201       - local_storage_pd_server:
202           capability: tosca.capabilities.Attachment
203           node: pd01_volume
204           relationship: pd02_volume_attachment
205       - local_storage_pd_server:
206           capability: tosca.capabilities.Attachment
207           node: pd01_volume
208           relationship: pd01_volume_attachment
209   relationship_templates:
210     pd01_volume_attachment:
211       type: org.openecomp.relationships.VolumeAttachesTo
212       properties:
213         volume_id: pd01_volume
214         instance_uuid: abstract_pd_server
215     pd02_volume_attachment:
216       type: org.openecomp.relationships.VolumeAttachesTo
217       properties:
218         volume_id: pd01_volume
219         instance_uuid: abstract_pd_server
220   groups:
221     hot-mog-0108-bs1271_group:
222       type: org.openecomp.groups.heat.HeatStack
223       properties:
224         heat_file: ../Artifacts/hot-mog-0108-bs1271.yml
225         description: heat template that creates MOG stack
226       members:
227       - packet_mirror_network
228       - pd01_volume
229       - abstract_pd_server