5ae24552fbcd6027ec9cd98244f25a3280db0d9b
[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: 4
111             ip_count_required:
112               is_required: false
113             floating_ip_count_required:
114               is_required: false
115         port_pd01_port_network:
116         - Network-1
117         - Network-0
118         port_pd01_port_subinterface_indicator:
119         - false
120         - false
121         compute_pd_server_user_data_format:
122         - RAW_SERVER_PD_2
123         - RAW_SERVER_PD_1
124         service_template_filter:
125           substitute_service_template: Nested_pd_serverServiceTemplate.yaml
126           count: 2
127         index_value:
128           get_property:
129           - SELF
130           - service_template_filter
131           - index_value
132   groups:
133     hot-mog-0108-bs1271_group:
134       type: org.openecomp.groups.heat.HeatStack
135       properties:
136         heat_file: ../Artifacts/hot-mog-0108-bs1271.yml
137         description: heat template that creates MOG stack
138       members:
139       - abstract_pd_server
140     BE_Affinity_group:
141       type: tosca.groups.Root
142       members:
143       - abstract_pd_server
144   policies:
145     BE_Affinity_policy:
146       type: org.openecomp.policies.placement.Colocate
147       properties:
148         name: Policy_BE_Affinity
149         affinity: host
150       targets:
151       - BE_Affinity_group