dd5df2e5cb6b57e2cbf0c02ff9e5c72570fc39d0
[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         port_pd01_port_mac_requirements:
128           mac_count_required:
129             is_required: false
130         vm_image_name:
131           get_input: pd_image_name
132         port_pd01_port_ip_requirements:
133         - ip_version: 4
134           ip_count_required:
135             is_required: false
136           floating_ip_count_required:
137             is_required: false
138         port_pd01_port_network:
139         - Network-1
140         - Network-0
141         compute_pd_server_user_data_format:
142         - RAW_SERVER_PD_2
143         - RAW_SERVER_PD_1
144         service_template_filter:
145           substitute_service_template: Nested_pd_serverServiceTemplate.yaml
146           count: 2
147         index_value:
148           get_property:
149           - SELF
150           - service_template_filter
151           - index_value
152     resource_with_dependOn:
153       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
154       properties:
155         network_name:
156           get_input: packet_mirror_network_name
157       requirements:
158       - dependency:
159           capability: feature_pd_server
160           node: abstract_pd_server
161           relationship: tosca.relationships.DependsOn
162   groups:
163     hot-mog-0108-bs1271_group:
164       type: org.openecomp.groups.heat.HeatStack
165       properties:
166         heat_file: ../Artifacts/hot-mog-0108-bs1271.yml
167         description: heat template that creates MOG stack
168       members:
169       - jsa_security_group
170       - resource_with_dependOn
171       - abstract_pd_server