1ece0e77db33da06e63af542b39ce1ebf31b15d9
[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     fsb1-Internal1-mac:
21       label: FSB1_internal_mac
22       hidden: false
23       immutable: false
24       type: string
25       description: FSB1_internal_mac
26     fsb-flavor:
27       label: FSB1_flavor
28       hidden: false
29       immutable: false
30       type: string
31       description: FSB1_flavor
32     fsb-image:
33       label: FSB1_image
34       hidden: false
35       immutable: false
36       type: string
37       description: FSB1_image
38     fsb1-Internal2-mac:
39       label: FSB1_internal_mac
40       hidden: false
41       immutable: false
42       type: string
43       description: FSB1_internal_mac
44     fsb1_zone:
45       label: FSB1_zone
46       hidden: false
47       immutable: false
48       type: string
49       description: FSB1_zone
50     network_name:
51       hidden: false
52       immutable: false
53       type: string
54       description: prop
55     CMAUI_volume_type:
56       hidden: false
57       immutable: false
58       type: string
59       description: prop
60     cmaui_cinder_volume_size:
61       hidden: false
62       immutable: false
63       type: string
64       description: prop
65   node_templates:
66     FSB1_Internal_2:
67       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
68       properties:
69         mac_address:
70           get_input: fsb1-Internal2-mac
71         network: Internal2-net
72         subinterface_indicator: false
73       requirements:
74       - binding:
75           capability: tosca.capabilities.network.Bindable
76           node: FSB1_template
77           relationship: tosca.relationships.network.BindsTo
78     FSB1_Internal_1:
79       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
80       properties:
81         mac_address:
82           get_input: fsb1-Internal1-mac
83         network: Internal1-net
84         subinterface_indicator: false
85       requirements:
86       - binding:
87           capability: tosca.capabilities.network.Bindable
88           node: FSB1_template
89           relationship: tosca.relationships.network.BindsTo
90       - link:
91           capability: tosca.capabilities.network.Linkable
92           node: jsa_net1
93           relationship: tosca.relationships.network.LinksTo
94     jsa_net1:
95       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
96       properties:
97         shared: true
98         network_name:
99           get_attribute:
100           - FSB1_Internal_1
101           - network_id
102         dhcp_agent_ids:
103           get_attribute:
104           - FSB1_template
105           - addresses
106         tenant_id:
107           get_attribute:
108           - FSB1_Internal_2
109           - network_id
110         qos_policy:
111           get_attribute:
112           - FSB1_Internal_2
113           - network_id
114     FSB1_template:
115       type: org.openecomp.resource.vfc.nodes.heat.FSB
116       properties:
117         flavor:
118           get_input: fsb-flavor
119         image:
120           get_input: fsb-image
121         admin_pass: STATIC-DATA-FSB1
122         availability_zone:
123           get_input: fsb1_zone
124         metadata:
125           write_files:
126           - path: /path1/etc/sysconfig/network-scripts/ifcfg-eth0
127           - path: /path2/etc/sysconfig/network-scripts/ifcfg-eth1
128         name:
129           get_input: fsb1-name
130       requirements:
131       - local_storage:
132           capability: tosca.capabilities.Attachment
133           node: cmaui_volume1
134           relationship: cmaui_volume_attachment
135       - local_storage:
136           capability: tosca.capabilities.Attachment
137           node: cmaui_volume2
138           relationship: cmaui_volume_attachment
139       artifacts:
140         nimbus-ethernet-gw:
141           type: tosca.artifacts.Deployment
142           file: ../Artifacts/nimbus-ethernet-gw
143         nimbus-ethernet:
144           type: tosca.artifacts.Deployment
145           file: ../Artifacts/nimbus-ethernet
146     cmaui_volume1:
147       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
148       properties:
149         volume_type:
150           get_input: CMAUI_volume_type
151         size: '(get_input : cmaui_cinder_volume_size) * 1024'
152     cmaui_volume2:
153       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
154       properties:
155         volume_type:
156           get_input: CMAUI_volume_type
157         size: '(get_input : cmaui_cinder_volume_size) * 1024'
158     abstract_FSB:
159       type: org.openecomp.resource.abstract.nodes.FSB
160       directives:
161       - substitutable
162       properties:
163         port_FSB1_Internal_2_subinterface_indicator:
164         - false
165         vm_flavor_name:
166           get_input: fsb-flavor
167         vm_image_name:
168           get_input: fsb-image
169         compute_FSB_admin_pass:
170         - STATIC-DATA-FSB1
171         port_FSB1_Internal_1_mac_address:
172           get_input: fsb1-Internal1-mac
173         port_FSB1_Internal_1_subinterface_indicator:
174         - false
175         port_FSB1_Internal_1_network:
176         - Internal1-net
177         port_FSB1_Internal_2_mac_address:
178           get_input: fsb1-Internal2-mac
179         port_FSB1_Internal_2_network:
180         - Internal2-net
181         compute_FSB_metadata:
182         - write_files:
183           - path: /path1/etc/sysconfig/network-scripts/ifcfg-eth0
184           - path: /path2/etc/sysconfig/network-scripts/ifcfg-eth1
185         compute_FSB_availability_zone:
186         - get_input: fsb1_zone
187         compute_FSB_name:
188         - get_input: fsb1-name
189         service_template_filter:
190           substitute_service_template: Nested_FSBServiceTemplate.yaml
191           count: 1
192         index_value:
193           get_property:
194           - SELF
195           - service_template_filter
196           - index_value
197   groups:
198     ep-jsa_net_group:
199       type: org.openecomp.groups.heat.HeatStack
200       properties:
201         heat_file: ../Artifacts/ep-jsa_net.yaml
202         description: |
203           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
204       members:
205       - FSB1_Internal_2
206       - FSB1_Internal_1
207       - FSB1_template