4e45d6ca2c870e309cf6804dc6759a6814aee040
[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         mac_requirements:
120           mac_count_required:
121             is_required: false
122         network_role_tag: oam
123         network:
124           get_input: oam_net_name
125     MASTER_mgmt_port:
126       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
127       properties:
128         ip_requirements:
129         - ip_version: 4
130           ip_count_required:
131             is_required: false
132           floating_ip_count_required:
133             is_required: false
134         mac_requirements:
135           mac_count_required:
136             is_required: false
137         network_role_tag: oam
138         network:
139           get_input: oam_net_name
140       requirements:
141       - binding:
142           capability: tosca.capabilities.network.Bindable
143           node: MASTER_instance
144           relationship: tosca.relationships.network.BindsTo
145       - binding:
146           capability: tosca.capabilities.network.Bindable
147           node: MASTER_instance_2
148           relationship: tosca.relationships.network.BindsTo
149     MASTER_instance:
150       type: org.openecomp.resource.vfc.nodes.heat.MASTER
151       properties:
152         flavor:
153           get_input: MASTER_flavor_name
154         image:
155           get_input: MASTER_image_name
156         name:
157           get_input: MASTER_names
158       requirements:
159       - dependency:
160           capability: tosca.capabilities.Node
161           node: packet_internal_network
162           relationship: tosca.relationships.DependsOn
163   groups:
164     input_group:
165       type: org.openecomp.groups.heat.HeatStack
166       properties:
167         heat_file: ../Artifacts/input.yaml
168         description: |
169           Version 2.0 02-11-2016 (Authors: John Doe, user PROD)
170       members:
171       - MASTER_instance_2
172       - packet_internal_network
173       - MASTER_mgmt_port_2
174       - MASTER_mgmt_port
175       - MASTER_instance