05d7a0f574b49082cbed578719a532e4dad3a979
[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 node_types:
8   org.openecomp.resource.vfc.nodes.heat.pd_server:
9     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
10 topology_template:
11   inputs:
12     pd_flavor_name:
13       label: PD flavor name
14       hidden: false
15       immutable: false
16       annotations:
17         source:
18           type: org.openecomp.annotations.Source
19           properties:
20             vf_module_label:
21             - input
22             source_type: HEAT
23             param_name: pd_flavor_name
24       type: string
25       description: flavor name of PD instance
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             - input
36             source_type: HEAT
37             param_name: availabilityzone_name
38       type: string
39       description: availabilityzone name
40     oam_flavor_name:
41       label: OAM flavor name
42       hidden: false
43       immutable: false
44       annotations:
45         source:
46           type: org.openecomp.annotations.Source
47           properties:
48             vf_module_label:
49             - input
50             source_type: HEAT
51             param_name: oam_flavor_name
52       type: string
53       description: flavor name of OAM instance
54     pd_image_name:
55       label: image name
56       hidden: false
57       immutable: false
58       annotations:
59         source:
60           type: org.openecomp.annotations.Source
61           properties:
62             vf_module_label:
63             - input
64             source_type: HEAT
65             param_name: pd_image_name
66       type: string
67       description: PD image name
68     packet_mirror_network_name:
69       label: packet mirror network name
70       hidden: false
71       immutable: false
72       annotations:
73         source:
74           type: org.openecomp.annotations.Source
75           properties:
76             vf_module_label:
77             - input
78             source_type: HEAT
79             param_name: packet_mirror_network_name
80       type: string
81       description: name of the oam network
82     pd_server_names:
83       label: PD server names
84       hidden: false
85       immutable: false
86       annotations:
87         source:
88           type: org.openecomp.annotations.Source
89           properties:
90             vf_module_label:
91             - input
92             source_type: HEAT
93             param_name: pd_server_names
94       type: list
95       description: name of the PD instance
96       entry_schema:
97         type: string
98     oam_net_name:
99       label: oam network name
100       hidden: false
101       immutable: false
102       annotations:
103         source:
104           type: org.openecomp.annotations.Source
105           properties:
106             vf_module_label:
107             - input
108             source_type: HEAT
109             param_name: oam_net_name
110       type: string
111       description: name of the oam network
112   node_templates:
113     pd01_port_0:
114       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
115       properties:
116         ip_requirements:
117         - ip_version: 4
118           ip_count_required:
119             is_required: false
120           floating_ip_count_required:
121             is_required: false
122         - ip_version: 6
123           ip_count_required:
124             is_required: false
125           floating_ip_count_required:
126             is_required: false
127         mac_requirements:
128           mac_count_required:
129             is_required: false
130         network_role_tag: oam
131         network:
132           get_input: oam_net_name
133       requirements:
134       - binding:
135           capability: tosca.capabilities.network.Bindable
136           node: server_pd_01
137           relationship: tosca.relationships.network.BindsTo
138     resources_with_dependOn:
139       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
140       properties:
141         network_name:
142           get_input: packet_mirror_network_name
143       requirements:
144       - dependency:
145           capability: tosca.capabilities.Node
146           node: server_pd_01
147           relationship: tosca.relationships.DependsOn
148     pd02_port_0:
149       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
150       properties:
151         ip_requirements:
152         - ip_version: 4
153           ip_count_required:
154             is_required: false
155           floating_ip_count_required:
156             is_required: false
157         - ip_version: 6
158           ip_count_required:
159             is_required: false
160           floating_ip_count_required:
161             is_required: false
162         mac_requirements:
163           mac_count_required:
164             is_required: false
165         network_role_tag: oam
166         network:
167           get_input: oam_net_name
168       requirements:
169       - binding:
170           capability: tosca.capabilities.network.Bindable
171           node: server_pd_01
172           relationship: tosca.relationships.network.BindsTo
173     server_pd_01:
174       type: org.openecomp.resource.vfc.nodes.heat.pd_server
175       properties:
176         flavor:
177           get_input: pd_flavor_name
178         availability_zone:
179           get_input: availabilityzone_name
180         image:
181           get_input: pd_image_name
182         user_data_format: RAW
183         name:
184           get_input:
185           - pd_server_names
186           - 0
187   groups:
188     input_group:
189       type: org.openecomp.groups.heat.HeatStack
190       properties:
191         heat_file: ../Artifacts/input.yaml
192         description: heat template that creates MOG stack
193       members:
194       - pd01_port_0
195       - resources_with_dependOn
196       - pd02_port_0
197       - server_pd_01