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