deee13fe850ac95e0dcf56522aab049c26c15046
[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         - false
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         port_pd01_port_subinterface_indicator:
184         - false
185         compute_pd_server_user_data_format:
186         - RAW
187         port_pd02_port_mac_requirements:
188           mac_count_required:
189             is_required: false
190         port_pd02_port_security_groups:
191         - - jsa_security_group
192         port_pd01_port_network:
193         - get_input: oam_net_name
194         port_pd02_port_ip_requirements:
195         - ip_version: 4
196           ip_count_required:
197             is_required: false
198           floating_ip_count_required:
199             is_required: false
200         port_pd01_port_network_role_tag: oam
201         port_pd02_port_network:
202         - get_input: oam_net_name
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