726f16c1a9edba52ae34323fac76011187e8e1ac
[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     pd_image_name:
42       label: image 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: pd_image_name
53       type: string
54       description: PD image name
55       default: MOG_BASE_8.0
56     packet_mirror_network_name:
57       label: packet mirror network 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: packet_mirror_network_name
68       type: string
69       description: name of the oam network
70     pd_server_names:
71       label: PD server names
72       hidden: false
73       immutable: false
74       annotations:
75         source:
76           type: org.openecomp.annotations.Source
77           properties:
78             vf_module_label:
79             - hot-mog-0108-bs1271
80             source_type: HEAT
81             param_name: pd_server_names
82       type: list
83       description: name of the PD instance
84       default:
85       - ZRDM1MOGX01MPD001
86       - ZRDM1MOGX01MPD002
87       entry_schema:
88         type: string
89   node_templates:
90     jsa_security_group:
91       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
92       properties:
93         name: Test-SecurityGroup
94         description: ems security group
95         rules:
96         - protocol: icmp
97           ethertype: IPv6
98           remote_ip_prefix: ::/0
99           direction: ingress
100       requirements:
101       - port:
102           capability: attachment_pd_server_pd01_port
103           node: abstract_pd_server
104           relationship: org.openecomp.relationships.AttachesTo
105     abstract_pd_server:
106       type: org.openecomp.resource.abstract.nodes.pd_server
107       directives:
108       - substitutable
109       properties:
110         compute_pd_server_availability_zone:
111         - get_input: availabilityzone_name
112         - get_input: availabilityzone_name
113         compute_pd_server_name:
114         - get_input:
115           - pd_server_names
116           - 1
117         - get_input:
118           - pd_server_names
119           - 0
120         port_pd01_port_replacement_policy:
121         - AUTO_PORT_1
122         - AUTO_PORT_0
123         vm_flavor_name:
124           get_input: pd_flavor_name
125         port_pd01_port_security_groups:
126         - - jsa_security_group
127         - - jsa_security_group
128         port_pd01_port_mac_requirements:
129           mac_count_required:
130             is_required: false
131         vm_image_name:
132           get_input: pd_image_name
133         port_pd01_port_ip_requirements:
134         - - ip_version: 4
135             ip_count_required:
136               is_required: false
137             floating_ip_count_required:
138               is_required: false
139         - - ip_version: 4
140             ip_count_required:
141               is_required: false
142             floating_ip_count_required:
143               is_required: false
144         port_pd01_port_network:
145         - Network-1
146         - Network-0
147         compute_pd_server_user_data_format:
148         - RAW_SERVER_PD_2
149         - RAW_SERVER_PD_1
150         service_template_filter:
151           substitute_service_template: Nested_pd_serverServiceTemplate.yaml
152           count: 2
153         index_value:
154           get_property:
155           - SELF
156           - service_template_filter
157           - index_value
158     resource_with_dependOn:
159       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
160       properties:
161         network_name:
162           get_input: packet_mirror_network_name
163       requirements:
164       - dependency:
165           capability: feature_pd_server
166           node: abstract_pd_server
167           relationship: tosca.relationships.DependsOn
168   groups:
169     hot-mog-0108-bs1271_group:
170       type: org.openecomp.groups.heat.HeatStack
171       properties:
172         heat_file: ../Artifacts/hot-mog-0108-bs1271.yml
173         description: heat template that creates MOG stack
174       members:
175       - jsa_security_group
176       - resource_with_dependOn
177       - abstract_pd_server