b0db5e87dc4522fe2ddd0f403fdf7948cfdf9cf0
[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.MASTER:
9     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
10 topology_template:
11   inputs:
12     MASTER_image_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_template
21             source_type: HEAT
22             param_name: MASTER_image_name
23       type: string
24       description: JSA MASTER instance image name
25     MASTER_names:
26       hidden: false
27       immutable: false
28       annotations:
29         source:
30           type: org.openecomp.annotations.Source
31           properties:
32             vf_module_label:
33             - hot_template
34             source_type: HEAT
35             param_name: MASTER_names
36       type: string
37       description: JSA MASTER instance name
38     security_group_name:
39       hidden: false
40       immutable: false
41       annotations:
42         source:
43           type: org.openecomp.annotations.Source
44           properties:
45             vf_module_label:
46             - hot_template
47             source_type: HEAT
48             param_name: security_group_name
49       type: string
50       description: security group name of JSA
51     MASTER_flavor_name:
52       hidden: false
53       immutable: false
54       annotations:
55         source:
56           type: org.openecomp.annotations.Source
57           properties:
58             vf_module_label:
59             - hot_template
60             source_type: HEAT
61             param_name: MASTER_flavor_name
62       type: string
63       description: the flavor name of JSA MASTER instance
64     oam_net_name:
65       hidden: false
66       immutable: false
67       annotations:
68         source:
69           type: org.openecomp.annotations.Source
70           properties:
71             vf_module_label:
72             - hot_template
73             source_type: HEAT
74             param_name: oam_net_name
75       type: string
76       description: network name of OAM network
77   node_templates:
78     jsa_security_group:
79       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
80       properties:
81         name:
82           get_input: security_group_name
83         description: ems security group
84         rules:
85         - protocol: tcp
86           ethertype: IPv4
87           port_range_max: 65535
88           remote_ip_prefix: 0.0.0.0/0
89           direction: egress
90           port_range_min: 1
91         - protocol: udp
92           ethertype: IPv4
93           port_range_max: 65535
94           remote_ip_prefix: 0.0.0.0/0
95           direction: egress
96           port_range_min: 1
97         - protocol: icmp
98           ethertype: IPv4
99           remote_ip_prefix: 0.0.0.0/0
100           direction: egress
101         - protocol: tcp
102           ethertype: IPv6
103           port_range_max: 65535
104           remote_ip_prefix: ::/0
105           direction: egress
106           port_range_min: 1
107         - protocol: udp
108           ethertype: IPv6
109           port_range_max: 65535
110           remote_ip_prefix: ::/0
111           direction: egress
112           port_range_min: 1
113         - protocol: icmp
114           ethertype: IPv6
115           remote_ip_prefix: ::/0
116           direction: egress
117         - protocol: tcp
118           ethertype: IPv4
119           port_range_max: 65535
120           remote_ip_prefix: 0.0.0.0/0
121           direction: ingress
122           port_range_min: 1
123         - protocol: udp
124           ethertype: IPv4
125           port_range_max: 65535
126           remote_ip_prefix: 0.0.0.0/0
127           direction: ingress
128           port_range_min: 1
129         - protocol: icmp
130           ethertype: IPv4
131           remote_ip_prefix: 0.0.0.0/0
132           direction: ingress
133         - protocol: tcp
134           ethertype: IPv6
135           port_range_max: 65535
136           remote_ip_prefix: ::/0
137           direction: ingress
138           port_range_min: 1
139         - protocol: udp
140           ethertype: IPv6
141           port_range_max: 65535
142           remote_ip_prefix: ::/0
143           direction: ingress
144           port_range_min: 1
145         - protocol: icmp
146           ethertype: IPv6
147           remote_ip_prefix: ::/0
148           direction: ingress
149       requirements:
150       - port:
151           capability: tosca.capabilities.Attachment
152           node: MASTER_mgmt_port
153           relationship: org.openecomp.relationships.AttachesTo
154     MASTER_mgmt_port:
155       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
156       properties:
157         ip_requirements:
158         - ip_version: 4
159           ip_count_required:
160             is_required: false
161           floating_ip_count_required:
162             is_required: false
163         - ip_version: 6
164           ip_count_required:
165             is_required: false
166           floating_ip_count_required:
167             is_required: false
168         security_groups:
169         - jsa_security_group
170         mac_requirements:
171           mac_count_required:
172             is_required: false
173         network_role_tag: oam
174         network:
175           get_input: oam_net_name
176       requirements:
177       - binding:
178           capability: tosca.capabilities.network.Bindable
179           node: MASTER_instance
180           relationship: tosca.relationships.network.BindsTo
181     MASTER_instance:
182       type: org.openecomp.resource.vfc.nodes.heat.MASTER
183       properties:
184         flavor:
185           get_input: MASTER_flavor_name
186         image:
187           get_input: MASTER_image_name
188         name:
189           get_input: MASTER_names
190   groups:
191     hot_template_group:
192       type: org.openecomp.groups.heat.HeatStack
193       properties:
194         heat_file: ../Artifacts/hot_template.yml
195         description: |
196           Version 2.0 02-11-2016 (Authors: John Doe, user PROD)
197       members:
198       - jsa_security_group
199       - MASTER_mgmt_port
200       - MASTER_instance