c32d886ed3737942316f50416278d2c94b590b54
[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: 4
161             ip_count_required:
162               is_required: false
163             floating_ip_count_required:
164               is_required: false
165         port_pd01_port_network:
166         - packet_mirror_network
167         - packet_mirror_network
168         port_pd01_port_subinterface_indicator:
169         - false
170         - false
171         compute_pd_server_user_data_format:
172         - RAW_SERVER_PD_2
173         - RAW_SERVER_PD_1
174         service_template_filter:
175           substitute_service_template: Nested_pd_serverServiceTemplate.yaml
176           count: 2
177         index_value:
178           get_property:
179           - SELF
180           - service_template_filter
181           - index_value
182       requirements:
183       - dependency_pd_server:
184           capability: tosca.capabilities.Node
185           node: packet_mirror_network
186           relationship: tosca.relationships.DependsOn
187       - link_pd_server_pd01_port:
188           capability: tosca.capabilities.network.Linkable
189           node: packet_mirror_network
190           relationship: tosca.relationships.network.LinksTo
191       - local_storage_pd_server:
192           capability: tosca.capabilities.Attachment
193           node: pd01_volume
194           relationship: pd02_volume_attachment
195       - local_storage_pd_server:
196           capability: tosca.capabilities.Attachment
197           node: pd01_volume
198           relationship: pd01_volume_attachment
199   relationship_templates:
200     pd01_volume_attachment:
201       type: org.openecomp.relationships.VolumeAttachesTo
202       properties:
203         volume_id: pd01_volume
204         instance_uuid: abstract_pd_server
205     pd02_volume_attachment:
206       type: org.openecomp.relationships.VolumeAttachesTo
207       properties:
208         volume_id: pd01_volume
209         instance_uuid: abstract_pd_server
210   groups:
211     hot-mog-0108-bs1271_group:
212       type: org.openecomp.groups.heat.HeatStack
213       properties:
214         heat_file: ../Artifacts/hot-mog-0108-bs1271.yml
215         description: heat template that creates MOG stack
216       members:
217       - packet_mirror_network
218       - pd01_volume
219       - abstract_pd_server