e87be546a308a0b1cb5152d43b96bb8ee2f0444b
[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         - ip_version: 6
167           ip_count_required:
168             is_required: false
169           floating_ip_count_required:
170             is_required: false
171         port_pd01_port_1_security_groups:
172         - - jsa_security_group
173         compute_pd_server_availability_zone:
174         - get_input: availabilityzone_name
175         compute_pd_server_name:
176         - get_input:
177           - pd_server_names
178           - 0
179         port_pd01_port_0_replacement_policy:
180         - AUTO
181         vm_flavor_name:
182           get_input: pd_flavor_name
183         vm_image_name:
184           get_input: pd_image_name
185         port_pd01_port_1_network_role_tag: oam
186         port_pd01_port_1_network:
187         - get_input: oam_net_name
188         compute_pd_server_user_data_format:
189         - RAW
190         port_pd01_port_0_network_role_tag: oam
191         port_pd01_port_1_ip_requirements:
192         - ip_version: 4
193           ip_count_required:
194             is_required: false
195           floating_ip_count_required:
196             is_required: false
197         - ip_version: 6
198           ip_count_required:
199             is_required: false
200           floating_ip_count_required:
201             is_required: false
202         port_pd01_port_1_mac_requirements:
203           mac_count_required:
204             is_required: false
205         port_pd01_port_1_replacement_policy:
206         - AUTO
207         port_pd01_port_0_security_groups:
208         - - jsa_security_group
209         service_template_filter:
210           substitute_service_template: Nested_pd_serverServiceTemplate.yaml
211           count: 1
212         index_value:
213           get_property:
214           - SELF
215           - service_template_filter
216           - index_value
217   groups:
218     hot-mog-0108-bs1271_group:
219       type: org.openecomp.groups.heat.HeatStack
220       properties:
221         heat_file: ../Artifacts/hot-mog-0108-bs1271.yml
222         description: heat template that creates MOG stack
223       members:
224       - resources_with_dependOn
225       - jsa_security_group
226       - abstract_pd_server