3ae12abd3067619b537adffa246c5fe4e113fa2d
[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.cmaui:
11     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
12 topology_template:
13   inputs:
14     cmaui_names:
15       hidden: false
16       immutable: false
17       annotations:
18         source:
19           type: org.openecomp.annotations.Source
20           properties:
21             vf_module_label:
22             - main
23             source_type: HEAT
24             param_name: cmaui_names
25       type: list
26       description: CMAUI1, CMAUI2 server names
27       entry_schema:
28         type: string
29     p1:
30       hidden: false
31       immutable: false
32       annotations:
33         source:
34           type: org.openecomp.annotations.Source
35           properties:
36             vf_module_label:
37             - main
38             source_type: HEAT
39             param_name: p1
40       type: string
41       description: UID of OAM network
42     cmaui_image:
43       hidden: false
44       immutable: false
45       annotations:
46         source:
47           type: org.openecomp.annotations.Source
48           properties:
49             vf_module_label:
50             - main
51             source_type: HEAT
52             param_name: cmaui_image
53       type: string
54       description: Image for CMAUI server
55     cmaui_flavor:
56       hidden: false
57       immutable: false
58       annotations:
59         source:
60           type: org.openecomp.annotations.Source
61           properties:
62             vf_module_label:
63             - main
64             source_type: HEAT
65             param_name: cmaui_flavor
66       type: string
67       description: Flavor for CMAUI server
68     cmaui_cinder_volume_size:
69       label: CMAUI Cinder volume size
70       hidden: false
71       immutable: false
72       annotations:
73         source:
74           type: org.openecomp.annotations.Source
75           properties:
76             vf_module_label:
77             - main
78             source_type: HEAT
79             param_name: cmaui_cinder_volume_size
80       type: float
81       description: the size of the CMAUI Cinder volume
82     security_group_name:
83       hidden: false
84       immutable: false
85       annotations:
86         source:
87           type: org.openecomp.annotations.Source
88           properties:
89             vf_module_label:
90             - main
91             source_type: HEAT
92             param_name: security_group_name
93       type: list
94       description: CMAUI1, CMAUI2 server names
95       entry_schema:
96         type: string
97     availability_zone_0:
98       label: availabilityzone name
99       hidden: false
100       immutable: false
101       annotations:
102         source:
103           type: org.openecomp.annotations.Source
104           properties:
105             vf_module_label:
106             - main
107             source_type: HEAT
108             param_name: availability_zone_0
109       type: string
110       description: availabilityzone name
111     cmaui_oam_ips:
112       hidden: false
113       immutable: false
114       annotations:
115         source:
116           type: org.openecomp.annotations.Source
117           properties:
118             vf_module_label:
119             - main
120             source_type: HEAT
121             param_name: cmaui_oam_ips
122       type: string
123     CMAUI_volume_type:
124       label: CMAUI vm volume type
125       hidden: false
126       immutable: false
127       annotations:
128         source:
129           type: org.openecomp.annotations.Source
130           properties:
131             vf_module_label:
132             - main
133             source_type: HEAT
134             param_name: CMAUI_volume_type
135       type: string
136       description: the name of the target volume backend
137   node_templates:
138     server_cmaui1:
139       type: org.openecomp.resource.vfc.nodes.heat.cmaui
140       properties:
141         flavor:
142           get_input: cmaui_flavor
143         availability_zone:
144           get_input: availability_zone_0
145         image:
146           get_input: cmaui_image
147         name:
148           get_input:
149           - cmaui_names
150           - 0
151     test_vol:
152       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
153       properties:
154         volume_type:
155           get_input: CMAUI_volume_type
156         size: '(get_input : cmaui_cinder_volume_size) * 1024'
157     cmaui_port_1:
158       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
159       properties:
160         replacement_policy: AUTO
161         ip_requirements:
162         - ip_version: 4
163           ip_count_required:
164             is_required: true
165           floating_ip_count_required:
166             is_required: false
167         security_groups:
168         - get_input: security_group_name
169         fixed_ips:
170         - ip_address:
171             get_input:
172             - cmaui_oam_ips
173             - 0
174         mac_requirements:
175           mac_count_required:
176             is_required: false
177         network:
178           get_input: p1
179       requirements:
180       - binding:
181           capability: tosca.capabilities.network.Bindable
182           node: server_cmaui1
183           relationship: tosca.relationships.network.BindsTo
184     test_nested:
185       type: org.openecomp.resource.abstract.nodes.heat.nested
186       directives:
187       - substitutable
188       properties:
189         service_template_filter:
190           substitute_service_template: nestedServiceTemplate.yaml
191         cmaui_volume_param: server_cmaui1
192   groups:
193     main_group:
194       type: org.openecomp.groups.heat.HeatStack
195       properties:
196         heat_file: ../Artifacts/main.yml
197         description: |
198           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
199       members:
200       - server_cmaui1
201       - test_vol
202       - cmaui_port_1
203       - test_nested