6e00f44eeaf5576501f9c7cf54d25387430390e3
[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         mac_requirements:
123           mac_count_required:
124             is_required: false
125         network_role_tag: oam
126         network:
127           get_input: oam_net_name
128       requirements:
129       - binding:
130           capability: tosca.capabilities.network.Bindable
131           node: server_pd_01
132           relationship: tosca.relationships.network.BindsTo
133     resources_with_dependOn:
134       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
135       properties:
136         network_name:
137           get_input: packet_mirror_network_name
138       requirements:
139       - dependency:
140           capability: tosca.capabilities.Node
141           node: server_pd_01
142           relationship: tosca.relationships.DependsOn
143     pd02_port_0:
144       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
145       properties:
146         ip_requirements:
147         - ip_version: 4
148           ip_count_required:
149             is_required: false
150           floating_ip_count_required:
151             is_required: false
152         mac_requirements:
153           mac_count_required:
154             is_required: false
155         network_role_tag: oam
156         network:
157           get_input: oam_net_name
158       requirements:
159       - binding:
160           capability: tosca.capabilities.network.Bindable
161           node: server_pd_01
162           relationship: tosca.relationships.network.BindsTo
163     server_pd_01:
164       type: org.openecomp.resource.vfc.nodes.heat.pd_server
165       properties:
166         flavor:
167           get_input: pd_flavor_name
168         availability_zone:
169           get_input: availabilityzone_name
170         image:
171           get_input: pd_image_name
172         user_data_format: RAW
173         name:
174           get_input:
175           - pd_server_names
176           - 0
177   groups:
178     input_group:
179       type: org.openecomp.groups.heat.HeatStack
180       properties:
181         heat_file: ../Artifacts/input.yaml
182         description: heat template that creates MOG stack
183       members:
184       - pd01_port_0
185       - resources_with_dependOn
186       - pd02_port_0
187       - server_pd_01