203c665e3334055c416fcb96b99a57d297b32f73
[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_availability_zone:
82         - get_input: availabilityzone_name
83         - get_input: availabilityzone_name
84         compute_pd_server_name:
85         - get_input:
86           - pd_server_names
87           - 1
88         - get_input:
89           - pd_server_names
90           - 0
91         port_pd01_port_replacement_policy:
92         - AUTO_PORT_1
93         - AUTO_PORT_0
94         vm_flavor_name:
95           get_input: pd_flavor_name
96         port_pd01_port_mac_requirements:
97           mac_count_required:
98             is_required: false
99         vm_image_name:
100           get_input: pd_image_name
101         port_pd01_port_ip_requirements:
102         - - ip_version: 4
103             ip_count_required:
104               is_required: false
105             floating_ip_count_required:
106               is_required: false
107         - - ip_version: 4
108             ip_count_required:
109               is_required: false
110             floating_ip_count_required:
111               is_required: false
112         port_pd01_port_network:
113         - Network-1
114         - Network-0
115         port_pd01_port_subinterface_indicator:
116         - false
117         - false
118         compute_pd_server_user_data_format:
119         - RAW_SERVER_PD_2
120         - RAW_SERVER_PD_1
121         service_template_filter:
122           substitute_service_template: Nested_pd_serverServiceTemplate.yaml
123           count: 2
124         index_value:
125           get_property:
126           - SELF
127           - service_template_filter
128           - index_value
129   groups:
130     hot-mog-0108-bs1271_group:
131       type: org.openecomp.groups.heat.HeatStack
132       properties:
133         heat_file: ../Artifacts/hot-mog-0108-bs1271.yml
134         description: heat template that creates MOG stack
135       members:
136       - abstract_pd_server
137   outputs:
138     output_attr_port_pd_0:
139       description: output attr port0
140       value:
141         get_attribute:
142         - abstract_pd_server
143         - pd_server_pd01_port_device_id
144     output_attr_server_pd_1:
145       description: output attr pd1
146       value:
147         get_attribute:
148         - abstract_pd_server
149         - pd_server_accessIPv4
150     output_attr_server_pd_2:
151       description: output attr pd2
152       value:
153         get_attribute:
154         - abstract_pd_server
155         - pd_server_accessIPv6