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