d663003b4a213667680cf63abc587f042ea1fee9
[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     abstract_pd_server:
77       type: org.openecomp.resource.abstract.nodes.pd_server
78       directives:
79       - substitutable
80       properties:
81         compute_pd_server_scheduler_hints:
82         - group: BE_Affinity_group
83         - group: BE_Affinity_group
84         compute_pd_server_availability_zone:
85         - get_input: availabilityzone_name
86         - get_input: availabilityzone_name
87         compute_pd_server_name:
88         - get_input:
89           - pd_server_names
90           - 1
91         - get_input:
92           - pd_server_names
93           - 0
94         port_pd01_port_replacement_policy:
95         - AUTO_PORT_1
96         - AUTO_PORT_0
97         vm_flavor_name:
98           get_input: pd_flavor_name
99         port_pd01_port_mac_requirements:
100           mac_count_required:
101             is_required: false
102         vm_image_name:
103           get_input: pd_image_name
104         port_pd01_port_ip_requirements:
105         - - ip_version: 4
106             ip_count_required:
107               is_required: false
108             floating_ip_count_required:
109               is_required: false
110           - ip_version: 6
111             ip_count_required:
112               is_required: false
113             floating_ip_count_required:
114               is_required: false
115         - - ip_version: 4
116             ip_count_required:
117               is_required: false
118             floating_ip_count_required:
119               is_required: false
120           - ip_version: 6
121             ip_count_required:
122               is_required: false
123             floating_ip_count_required:
124               is_required: false
125         port_pd01_port_network:
126         - Network-1
127         - Network-0
128         port_pd01_port_subinterface_indicator:
129         - false
130         - false
131         compute_pd_server_user_data_format:
132         - RAW_SERVER_PD_2
133         - RAW_SERVER_PD_1
134         service_template_filter:
135           substitute_service_template: Nested_pd_serverServiceTemplate.yaml
136           count: 2
137         index_value:
138           get_property:
139           - SELF
140           - service_template_filter
141           - index_value
142   groups:
143     hot-mog-0108-bs1271_group:
144       type: org.openecomp.groups.heat.HeatStack
145       properties:
146         heat_file: ../Artifacts/hot-mog-0108-bs1271.yml
147         description: heat template that creates MOG stack
148       members:
149       - abstract_pd_server
150     BE_Affinity_group:
151       type: tosca.groups.Root
152       members:
153       - abstract_pd_server
154   policies:
155     BE_Affinity_policy:
156       type: org.openecomp.policies.placement.Colocate
157       properties:
158         name: Policy_BE_Affinity
159         affinity: host
160       targets:
161       - BE_Affinity_group