74af8bd259b1acdf548db27559d53fb01a8d7b53
[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 node_types:
10   org.openecomp.resource.vfc.nodes.heat.FSB:
11     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
12 topology_template:
13   inputs:
14     fsb1-name:
15       label: FSB1_name
16       hidden: false
17       immutable: false
18       type: string
19       description: FSB1_name
20     fsb2-name:
21       label: FSB2_name
22       hidden: false
23       immutable: false
24       type: string
25       description: FSB2_name
26     cmaui_cinder_volume_size:
27       label: volume size
28       hidden: false
29       immutable: false
30       type: float
31       description: my volume size 320GB
32     fsb-flavor:
33       label: FSB1_flavor
34       hidden: false
35       immutable: false
36       type: string
37       description: FSB1_flavor
38     fsb-image:
39       label: FSB1_image
40       hidden: false
41       immutable: false
42       type: string
43       description: FSB1_image
44     fsb1-Internal1-mac:
45       label: FSB1_internal_mac
46       hidden: false
47       immutable: false
48       type: string
49       description: FSB1_internal_mac
50     fsb1-Internal2-mac:
51       label: FSB1_internal_mac
52       hidden: false
53       immutable: false
54       type: string
55       description: FSB1_internal_mac
56     fsb1-zone:
57       label: FSB1_zone
58       hidden: false
59       immutable: false
60       type: string
61       description: FSB1_zone
62     fsb2_zone:
63       label: FSB2_zone
64       hidden: false
65       immutable: false
66       type: string
67       description: FSB2_zone
68     network_name:
69       hidden: false
70       immutable: false
71       type: string
72       description: prop
73     fsb2-Internal1-mac:
74       label: FSB1_internal_mac
75       hidden: false
76       immutable: false
77       type: string
78       description: FSB1_internal_mac
79     fsb2-Internal2-mac:
80       label: FSB1_internal_mac
81       hidden: false
82       immutable: false
83       type: string
84       description: FSB1_internal_mac
85     fsb1-oam-ip:
86       hidden: false
87       immutable: false
88       type: string
89       description: prop
90   node_templates:
91     FSB2_Internal_2:
92       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
93       properties:
94         mac_address:
95           get_input: fsb2-Internal2-mac
96         network: Internal2-net-fsb2-Internal2
97         subinterface_indicator: false
98       requirements:
99       - binding:
100           capability: tosca.capabilities.network.Bindable
101           node: FSB2_template
102           relationship: tosca.relationships.network.BindsTo
103     FSB2_Internal_1:
104       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
105       properties:
106         mac_address:
107           get_input: fsb2-Internal1-mac
108         network: Internal2-net-fsb2-Internal1
109         subinterface_indicator: false
110       requirements:
111       - binding:
112           capability: tosca.capabilities.network.Bindable
113           node: FSB1_template
114           relationship: tosca.relationships.network.BindsTo
115     FSB1_Internal_2:
116       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
117       properties:
118         mac_address:
119           get_input: fsb1-Internal2-mac
120         network: Internal1-net-fsb1-Internal2
121         subinterface_indicator: false
122       requirements:
123       - binding:
124           capability: tosca.capabilities.network.Bindable
125           node: FSB2_template
126           relationship: tosca.relationships.network.BindsTo
127       - link:
128           capability: tosca.capabilities.network.Linkable
129           node: jsa_net1
130           relationship: tosca.relationships.network.LinksTo
131     FSB1_Internal_1:
132       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
133       properties:
134         mac_address:
135           get_input: fsb1-Internal1-mac
136         network: Internal1-net-fsb1-Internal1
137         subinterface_indicator: false
138       requirements:
139       - binding:
140           capability: tosca.capabilities.network.Bindable
141           node: FSB1_template
142           relationship: tosca.relationships.network.BindsTo
143       - link:
144           capability: tosca.capabilities.network.Linkable
145           node: jsa_net1
146           relationship: tosca.relationships.network.LinksTo
147     jsa_net1:
148       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
149       properties:
150         shared: true
151         network_name:
152           get_attribute:
153           - FSB1_Internal_1
154           - network_id
155         dhcp_agent_ids:
156           get_attribute:
157           - FSB1_template
158           - addresses
159         tenant_id:
160           get_attribute:
161           - FSB2_Internal_2
162           - network_id
163         qos_policy:
164           get_attribute:
165           - FSB2_Internal_2
166           - network_id
167     FSB1_template:
168       type: org.openecomp.resource.vfc.nodes.heat.FSB
169       properties:
170         flavor:
171           get_input: fsb-flavor
172         image:
173           get_input: fsb-image
174         admin_pass: STATIC-DATA-FSB1
175         user_data: OPTIONAL-DATA-FSB1
176         availability_zone:
177           get_input: fsb1_zone
178         metadata:
179           write_files:
180           - path: /path1/etc/sysconfig/network-scripts/ifcfg-eth0
181           - path: /path2/etc/sysconfig/network-scripts/ifcfg-eth1
182         name:
183           get_input: fsb1-name
184       requirements:
185       - local_storage:
186           capability: tosca.capabilities.Attachment
187           node: cmaui_volume1
188           relationship: cmaui_volume_attachment
189       - local_storage:
190           capability: tosca.capabilities.Attachment
191           node: cmaui_volume2
192           relationship: cmaui_volume_attachment
193     FSB2_template:
194       type: org.openecomp.resource.vfc.nodes.heat.FSB
195       properties:
196         flavor:
197           get_input: fsb-flavor
198         image:
199           get_input: fsb-image
200         admin_pass: STATIC-DATA-FSB2
201         availability_zone:
202           get_input: fsb2_zone
203         metadata:
204           write_files:
205           - path: /path3/etc/sysconfig/network-scripts/ifcfg-eth0
206           - path: /path4/etc/sysconfig/network-scripts/ifcfg-eth1
207         name:
208           get_input: fsb2-name
209       requirements:
210       - local_storage:
211           capability: tosca.capabilities.Attachment
212           node: cmaui_volume3
213           relationship: cmaui_volume_attachment
214       - local_storage:
215           capability: tosca.capabilities.Attachment
216           node: cmaui_volume4
217           relationship: cmaui_volume_attachment
218     cmaui_volume1:
219       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
220       properties:
221         volume_type:
222           get_input: CMAUI_volume_type
223         size: '(get_input : cmaui_cinder_volume_size) * 1024'
224     cmaui_volume2:
225       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
226       properties:
227         volume_type:
228           get_input: CMAUI_volume_type
229         size: '(get_input : cmaui_cinder_volume_size) * 1024'
230     cmaui_volume3:
231       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
232       properties:
233         volume_type:
234           get_input: CMAUI_volume_type
235         size: '(get_input : cmaui_cinder_volume_size) * 1024'
236     cmaui_volume4:
237       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
238       properties:
239         volume_type:
240           get_input: CMAUI_volume_type
241         size: '(get_input : cmaui_cinder_volume_size) * 1024'
242     abstract_FSB:
243       type: org.openecomp.resource.abstract.nodes.FSB
244       directives:
245       - substitutable
246       properties:
247         port_FSB1_Internal_mac_address:
248           get_input: fsb1-Internal1-mac
249         compute_FSB_user_data:
250         - OPTIONAL-DATA-FSB1
251         - null
252         vm_flavor_name:
253           get_input: fsb-flavor
254         vm_image_name:
255           get_input: fsb-image
256         compute_FSB_admin_pass:
257         - STATIC-DATA-FSB1
258         - STATIC-DATA-FSB2
259         port_FSB1_Internal_subinterface_indicator:
260         - false
261         - false
262         port_FSB1_Internal_network:
263         - Internal1-net-fsb1-Internal1
264         - Internal1-net-fsb1-Internal2
265         port_FSB2_Internal_mac_address:
266           get_input: fsb2-Internal1-mac
267         port_FSB2_Internal_network:
268         - Internal2-net-fsb2-Internal1
269         - Internal2-net-fsb2-Internal2
270         compute_FSB_metadata:
271         - write_files:
272           - path: /path1/etc/sysconfig/network-scripts/ifcfg-eth0
273           - path: /path2/etc/sysconfig/network-scripts/ifcfg-eth1
274         - write_files:
275           - path: /path3/etc/sysconfig/network-scripts/ifcfg-eth0
276           - path: /path4/etc/sysconfig/network-scripts/ifcfg-eth1
277         port_FSB2_Internal_subinterface_indicator:
278         - false
279         - false
280         compute_FSB_availability_zone:
281         - get_input: fsb1_zone
282         - get_input: fsb2_zone
283         compute_FSB_name:
284         - get_input: fsb1-name
285         - get_input: fsb2-name
286         service_template_filter:
287           substitute_service_template: Nested_FSBServiceTemplate.yaml
288           count: 2
289         index_value:
290           get_property:
291           - SELF
292           - service_template_filter
293           - index_value
294   groups:
295     ep-jsa_net_group:
296       type: org.openecomp.groups.heat.HeatStack
297       properties:
298         heat_file: ../Artifacts/ep-jsa_net.yaml
299         description: |
300           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
301       members:
302       - FSB1_Internal_1
303       - FSB1_Internal_2
304       - FSB2_Internal_1
305       - FSB2_Internal_2
306       - FSB1_template
307       - FSB2_template