7b63f3c12c24837b43ceb52fd74d4065c4b641bc
[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
144           node: abstract_pd_server
145           relationship: org.openecomp.relationships.AttachesTo
146       - port:
147           capability: attachment_pd_server_pd02_port
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         compute_pd_server_availability_zone:
156         - get_input: availabilityzone_name
157         compute_pd_server_name:
158         - get_input:
159           - pd_server_names
160           - 0
161         port_pd01_port_replacement_policy:
162         - AUTO
163         vm_flavor_name:
164           get_input: pd_flavor_name
165         port_pd01_port_security_groups:
166         - - jsa_security_group
167         port_pd02_port_network_role_tag: oam
168         port_pd02_port_subinterface_indicator:
169         - true
170         port_pd01_port_mac_requirements:
171           mac_count_required:
172             is_required: false
173         vm_image_name:
174           get_input: pd_image_name
175         port_pd02_port_replacement_policy:
176         - AUTO
177         port_pd01_port_ip_requirements:
178         - ip_version: 4
179           ip_count_required:
180             is_required: false
181           floating_ip_count_required:
182             is_required: false
183         - ip_version: 6
184           ip_count_required:
185             is_required: false
186           floating_ip_count_required:
187             is_required: false
188         port_pd01_port_subinterface_indicator:
189         - true
190         compute_pd_server_user_data_format:
191         - RAW
192         port_pd02_port_mac_requirements:
193           mac_count_required:
194             is_required: false
195         port_pd02_port_security_groups:
196         - - jsa_security_group
197         port_pd01_port_network:
198         - get_input: oam_net_name
199         port_pd02_port_ip_requirements:
200         - ip_version: 4
201           ip_count_required:
202             is_required: false
203           floating_ip_count_required:
204             is_required: false
205         - ip_version: 6
206           ip_count_required:
207             is_required: false
208           floating_ip_count_required:
209             is_required: false
210         port_pd01_port_network_role_tag: oam
211         port_pd02_port_network:
212         - get_input: oam_net_name
213         service_template_filter:
214           substitute_service_template: Nested_pd_serverServiceTemplate.yaml
215           count: 1
216         index_value:
217           get_property:
218           - SELF
219           - service_template_filter
220           - index_value
221   groups:
222     hot-mog-0108-bs1271_group:
223       type: org.openecomp.groups.heat.HeatStack
224       properties:
225         heat_file: ../Artifacts/hot-mog-0108-bs1271.yml
226         description: heat template that creates MOG stack
227       members:
228       - resources_with_dependOn
229       - jsa_security_group
230       - abstract_pd_server