2c371cd6beb44b4df34c11150a31efecc62f3d96
[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     pd_server_names:
57       label: PD server names
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_server_names
68       type: list
69       description: name of the PD instance
70       default:
71       - ZRDM1MOGX01MPD001
72       - ZRDM1MOGX01MPD002
73       entry_schema:
74         type: string
75   node_templates:
76     network_policy_server_pd_01:
77       type: org.openecomp.resource.vfc.rules.nodes.heat.network.contrail.NetworkRules
78       properties:
79         name:
80           get_attribute:
81           - abstract_pd_server
82           - pd_server_accessIPv4
83     network_policy_server_pd_02:
84       type: org.openecomp.resource.vfc.rules.nodes.heat.network.contrail.NetworkRules
85       properties:
86         name:
87           get_attribute:
88           - abstract_pd_server
89           - pd_server_accessIPv6
90     abstract_pd_server:
91       type: org.openecomp.resource.abstract.nodes.pd_server
92       directives:
93       - substitutable
94       properties:
95         compute_pd_server_availability_zone:
96         - get_input: availabilityzone_name
97         - get_input: availabilityzone_name
98         compute_pd_server_name:
99         - get_input:
100           - pd_server_names
101           - 1
102         - get_input:
103           - pd_server_names
104           - 0
105         port_pd01_port_replacement_policy:
106         - AUTO_PORT_1
107         - AUTO_PORT_0
108         vm_flavor_name:
109           get_input: pd_flavor_name
110         port_pd01_port_mac_requirements:
111           mac_count_required:
112             is_required: false
113         vm_image_name:
114           get_input: pd_image_name
115         port_pd01_port_ip_requirements:
116         - - ip_version: 4
117             ip_count_required:
118               is_required: false
119             floating_ip_count_required:
120               is_required: false
121           - ip_version: 6
122             ip_count_required:
123               is_required: false
124             floating_ip_count_required:
125               is_required: false
126         - - ip_version: 4
127             ip_count_required:
128               is_required: false
129             floating_ip_count_required:
130               is_required: false
131           - ip_version: 6
132             ip_count_required:
133               is_required: false
134             floating_ip_count_required:
135               is_required: false
136         port_pd01_port_network:
137         - Network-1
138         - Network-0
139         port_pd01_port_subinterface_indicator:
140         - true
141         - true
142         compute_pd_server_user_data_format:
143         - RAW_SERVER_PD_2
144         - RAW_SERVER_PD_1
145         service_template_filter:
146           substitute_service_template: Nested_pd_serverServiceTemplate.yaml
147           count: 2
148         index_value:
149           get_property:
150           - SELF
151           - service_template_filter
152           - index_value
153     network_policy_port0:
154       type: org.openecomp.resource.vfc.rules.nodes.heat.network.contrail.NetworkRules
155       properties:
156         entries:
157           get_attribute:
158           - abstract_pd_server
159           - pd_server_pd01_port_device_owner
160   groups:
161     hot-mog-0108-bs1271_group:
162       type: org.openecomp.groups.heat.HeatStack
163       properties:
164         heat_file: ../Artifacts/hot-mog-0108-bs1271.yml
165         description: heat template that creates MOG stack
166       members:
167       - network_policy_server_pd_01
168       - network_policy_server_pd_02
169       - network_policy_port0
170       - abstract_pd_server