64c5fd5936fc1d34bfb34c26fac4b20e8e305f32
[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 - GlobalSubstitutionTypes:
8     file: GlobalSubstitutionTypesServiceTemplate.yaml
9 topology_template:
10   inputs:
11     pd_flavor_name:
12       label: PD flavor 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-mog-0108-bs1271
21             source_type: HEAT
22             param_name: pd_flavor_name
23       type: string
24       description: flavor name of PD instance
25       default: m3.xlarge
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             - hot-mog-0108-bs1271
36             source_type: HEAT
37             param_name: availabilityzone_name
38       type: string
39       description: availabilityzone name
40       default: nova
41     oam_flavor_name:
42       label: OAM flavor name
43       hidden: false
44       immutable: false
45       annotations:
46         source:
47           type: org.openecomp.annotations.Source
48           properties:
49             vf_module_label:
50             - hot-mog-0108-bs1271
51             source_type: HEAT
52             param_name: oam_flavor_name
53       type: string
54       description: flavor name of OAM instance
55       default: m3.xlarge
56     pd_image_name:
57       label: image name
58       hidden: false
59       immutable: false
60       annotations:
61         source:
62           type: org.openecomp.annotations.Source
63           properties:
64             vf_module_label:
65             - hot-mog-0108-bs1271
66             source_type: HEAT
67             param_name: pd_image_name
68       type: string
69       description: PD image name
70       default: MOG_BASE_8.0
71     packet_mirror_network_name:
72       label: packet mirror network name
73       hidden: false
74       immutable: false
75       annotations:
76         source:
77           type: org.openecomp.annotations.Source
78           properties:
79             vf_module_label:
80             - hot-mog-0108-bs1271
81             source_type: HEAT
82             param_name: packet_mirror_network_name
83       type: string
84       description: name of the oam network
85       default: packet-net-1
86     pd_server_names:
87       label: PD server names
88       hidden: false
89       immutable: false
90       annotations:
91         source:
92           type: org.openecomp.annotations.Source
93           properties:
94             vf_module_label:
95             - hot-mog-0108-bs1271
96             source_type: HEAT
97             param_name: pd_server_names
98       type: list
99       description: name of the PD instance
100       default:
101       - ZRDM1MOGX01MPD001
102       - ZRDM1MOGX01MPD002
103       entry_schema:
104         type: string
105     oam_net_name:
106       label: oam network name
107       hidden: false
108       immutable: false
109       annotations:
110         source:
111           type: org.openecomp.annotations.Source
112           properties:
113             vf_module_label:
114             - hot-mog-0108-bs1271
115             source_type: HEAT
116             param_name: oam_net_name
117       type: string
118       description: name of the oam network
119       default: oam_protected_net_0
120   node_templates:
121     resources_with_dependOn:
122       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
123       properties:
124         network_name:
125           get_input: packet_mirror_network_name
126       requirements:
127       - dependency:
128           capability: feature_pd_server
129           node: abstract_pd_server
130           relationship: tosca.relationships.DependsOn
131     jsa_security_group:
132       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
133       properties:
134         name: Test-SecurityGroup
135         description: ems security group
136         rules:
137         - protocol: icmp
138           ethertype: IPv6
139           remote_ip_prefix: ::/0
140           direction: ingress
141       requirements:
142       - port:
143           capability: attachment_pd_server_pd01_port_0
144           node: abstract_pd_server
145           relationship: org.openecomp.relationships.AttachesTo
146       - port:
147           capability: attachment_pd_server_pd01_port_1
148           node: abstract_pd_server
149           relationship: org.openecomp.relationships.AttachesTo
150     abstract_pd_server:
151       type: org.openecomp.resource.abstract.nodes.pd_server
152       directives:
153       - substitutable
154       properties:
155         port_pd01_port_0_mac_requirements:
156           mac_count_required:
157             is_required: false
158         port_pd01_port_0_network:
159         - get_input: oam_net_name
160         port_pd01_port_0_ip_requirements:
161         - ip_version: 4
162           ip_count_required:
163             is_required: false
164           floating_ip_count_required:
165             is_required: false
166         port_pd01_port_1_security_groups:
167         - - jsa_security_group
168         compute_pd_server_availability_zone:
169         - get_input: availabilityzone_name
170         compute_pd_server_name:
171         - get_input:
172           - pd_server_names
173           - 0
174         port_pd01_port_0_subinterface_indicator:
175         - false
176         port_pd01_port_0_replacement_policy:
177         - AUTO
178         vm_flavor_name:
179           get_input: pd_flavor_name
180         vm_image_name:
181           get_input: pd_image_name
182         port_pd01_port_1_network_role_tag: oam
183         port_pd01_port_1_network:
184         - get_input: oam_net_name
185         compute_pd_server_user_data_format:
186         - RAW
187         port_pd01_port_0_network_role_tag: oam
188         port_pd01_port_1_ip_requirements:
189         - ip_version: 4
190           ip_count_required:
191             is_required: false
192           floating_ip_count_required:
193             is_required: false
194         port_pd01_port_1_subinterface_indicator:
195         - false
196         port_pd01_port_1_mac_requirements:
197           mac_count_required:
198             is_required: false
199         port_pd01_port_1_replacement_policy:
200         - AUTO
201         port_pd01_port_0_security_groups:
202         - - jsa_security_group
203         service_template_filter:
204           substitute_service_template: Nested_pd_serverServiceTemplate.yaml
205           count: 1
206         index_value:
207           get_property:
208           - SELF
209           - service_template_filter
210           - index_value
211   groups:
212     hot-mog-0108-bs1271_group:
213       type: org.openecomp.groups.heat.HeatStack
214       properties:
215         heat_file: ../Artifacts/hot-mog-0108-bs1271.yml
216         description: heat template that creates MOG stack
217       members:
218       - resources_with_dependOn
219       - jsa_security_group
220       - abstract_pd_server