f427a9b00cc07f90782811144c64ada82cdee615
[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     dummy_net_name_1:
27       label: dummy net 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: dummy_net_name_1
38       type: string
39       description: dummy net name
40       default: Network-1
41     availabilityzone_name:
42       label: availabilityzone 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: availabilityzone_name
53       type: string
54       description: availabilityzone name
55       default: nova
56     pd_image_name:
57       label: image name
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_image_name
68       type: string
69       description: PD image name
70       default: MOG_BASE_8.0
71     pd_server_names:
72       label: PD server names
73       hidden: false
74       immutable: false
75       annotations:
76         source:
77           type: org.openecomp.annotations.Source
78           properties:
79             vf_module_label:
80             - hot-mog-0108-bs1271
81             source_type: HEAT
82             param_name: pd_server_names
83       type: list
84       description: name of the PD instance
85       default:
86       - ZRDM1MOGX01MPD001
87       - ZRDM1MOGX01MPD002
88       entry_schema:
89         type: string
90   node_templates:
91     abstract_pd_server:
92       type: org.openecomp.resource.abstract.nodes.pd_server
93       directives:
94       - substitutable
95       properties:
96         compute_pd_server_availability_zone:
97         - get_input: availabilityzone_name
98         - get_input: availabilityzone_name
99         compute_pd_server_name:
100         - get_input:
101           - pd_server_names
102           - 1
103         - get_input:
104           - pd_server_names
105           - 0
106         port_pd01_port_replacement_policy:
107         - get_attribute:
108           - network_policy_server
109           - name
110         - AUTO_PORT_0
111         vm_flavor_name:
112           get_input: pd_flavor_name
113         port_pd01_port_mac_requirements:
114           mac_count_required:
115             is_required: false
116         vm_image_name:
117           get_input: pd_image_name
118         port_pd01_port_ip_requirements:
119         - - ip_version: 4
120             ip_count_required:
121               is_required: false
122             floating_ip_count_required:
123               is_required: false
124         - - ip_version: 4
125             ip_count_required:
126               is_required: false
127             floating_ip_count_required:
128               is_required: false
129         port_pd01_port_network:
130         - Network-1
131         - Network-0
132         port_pd01_port_subinterface_indicator:
133         - false
134         - false
135         compute_pd_server_user_data_format:
136         - RAW_SERVER_PD_2
137         - get_attribute:
138           - network_policy_server
139           - name
140         compute_pd_server_metadata:
141         - get_attribute:
142           - network_policy_server
143           - name
144         - null
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_server:
154       type: org.openecomp.resource.vfc.rules.nodes.heat.network.contrail.NetworkRules
155       properties:
156         name:
157           get_input: dummy_net_name_1
158   groups:
159     hot-mog-0108-bs1271_group:
160       type: org.openecomp.groups.heat.HeatStack
161       properties:
162         heat_file: ../Artifacts/hot-mog-0108-bs1271.yml
163         description: heat template that creates MOG stack
164       members:
165       - network_policy_server
166       - abstract_pd_server