1dbd9fe30e0f3fd9c636f303a30194906d009df5
[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             - input
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             - input
34             source_type: HEAT
35             param_name: MASTER_names
36       type: string
37       description: JSA MASTER instance name
38     packet_internal_network_name:
39       hidden: false
40       immutable: false
41       annotations:
42         source:
43           type: org.openecomp.annotations.Source
44           properties:
45             vf_module_label:
46             - input
47             source_type: HEAT
48             param_name: packet_internal_network_name
49       type: string
50       description: A string specifying a symbolic name for the network
51     security_group_name:
52       hidden: false
53       immutable: false
54       annotations:
55         source:
56           type: org.openecomp.annotations.Source
57           properties:
58             vf_module_label:
59             - input
60             source_type: HEAT
61             param_name: security_group_name
62       type: string
63       description: security group name of JSA
64     MASTER_flavor_name:
65       hidden: false
66       immutable: false
67       annotations:
68         source:
69           type: org.openecomp.annotations.Source
70           properties:
71             vf_module_label:
72             - input
73             source_type: HEAT
74             param_name: MASTER_flavor_name
75       type: string
76       description: the flavor name of JSA MASTER instance
77     oam_net_name:
78       hidden: false
79       immutable: false
80       annotations:
81         source:
82           type: org.openecomp.annotations.Source
83           properties:
84             vf_module_label:
85             - input
86             source_type: HEAT
87             param_name: oam_net_name
88       type: string
89       description: network name of OAM network
90   node_templates:
91     MASTER_instance_2:
92       type: org.openecomp.resource.vfc.nodes.heat.MASTER
93       properties:
94         flavor:
95           get_input: MASTER_flavor_name
96         image:
97           get_input: MASTER_image_name
98         name:
99           get_input: MASTER_names
100     packet_internal_network:
101       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
102       properties:
103         network_name:
104           get_input: packet_internal_network_name
105       requirements:
106       - dependency:
107           capability: tosca.capabilities.Node
108           node: MASTER_mgmt_port
109           relationship: tosca.relationships.DependsOn
110     MASTER_mgmt_port_2:
111       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
112       properties:
113         ip_requirements:
114         - ip_version: 4
115           ip_count_required:
116             is_required: false
117           floating_ip_count_required:
118             is_required: false
119         - ip_version: 6
120           ip_count_required:
121             is_required: false
122           floating_ip_count_required:
123             is_required: false
124         mac_requirements:
125           mac_count_required:
126             is_required: false
127         network_role_tag: oam
128         network:
129           get_input: oam_net_name
130     MASTER_mgmt_port:
131       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
132       properties:
133         ip_requirements:
134         - ip_version: 4
135           ip_count_required:
136             is_required: false
137           floating_ip_count_required:
138             is_required: false
139         - ip_version: 6
140           ip_count_required:
141             is_required: false
142           floating_ip_count_required:
143             is_required: false
144         mac_requirements:
145           mac_count_required:
146             is_required: false
147         network_role_tag: oam
148         network:
149           get_input: oam_net_name
150       requirements:
151       - binding:
152           capability: tosca.capabilities.network.Bindable
153           node: MASTER_instance
154           relationship: tosca.relationships.network.BindsTo
155       - binding:
156           capability: tosca.capabilities.network.Bindable
157           node: MASTER_instance_2
158           relationship: tosca.relationships.network.BindsTo
159     MASTER_instance:
160       type: org.openecomp.resource.vfc.nodes.heat.MASTER
161       properties:
162         flavor:
163           get_input: MASTER_flavor_name
164         image:
165           get_input: MASTER_image_name
166         name:
167           get_input: MASTER_names
168       requirements:
169       - dependency:
170           capability: tosca.capabilities.Node
171           node: packet_internal_network
172           relationship: tosca.relationships.DependsOn
173   groups:
174     input_group:
175       type: org.openecomp.groups.heat.HeatStack
176       properties:
177         heat_file: ../Artifacts/input.yaml
178         description: |
179           Version 2.0 02-11-2016 (Authors: John Doe, user PROD)
180       members:
181       - MASTER_instance_2
182       - packet_internal_network
183       - MASTER_mgmt_port_2
184       - MASTER_mgmt_port
185       - MASTER_instance