[SDC] Onboarding 1710 rebase.
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / fulltest / nestedSingleCompute / nestedWithTwoComputesOfSameType / out / MainServiceTemplate.yaml
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     oam_net_ips:
12       label: OAM network ips
13       hidden: false
14       immutable: false
15       type: list
16       description: OAM network ips
17       default:
18       - 107.239.64.121
19       entry_schema:
20         type: string
21     availabilityzone_name:
22       label: availabilityzone name
23       hidden: false
24       immutable: false
25       type: string
26       description: availabilityzone name
27       default: nova
28     oam_net_gw:
29       label: CPS network gateway
30       hidden: false
31       immutable: false
32       type: string
33       description: CPS network gateway
34       default: 107.239.64.1
35     pcm_server_names:
36       label: PCRF CM server names
37       hidden: false
38       immutable: false
39       type: list
40       description: name of the PCRF CM instance
41       default:
42       - ZRDM1PCRF01PCM001
43       entry_schema:
44         type: string
45     pcm_image_name:
46       label: PCRF CM image name
47       hidden: false
48       immutable: false
49       type: string
50       description: PCRF CM image name
51       default: rhel2
52     cps_net_ips:
53       label: CPS network ips
54       hidden: false
55       immutable: false
56       type: list
57       description: CPS network ips
58       default:
59       - 172.26.16.113
60       entry_schema:
61         type: string
62     security_group_name:
63       label: security group name
64       hidden: false
65       immutable: false
66       type: string
67       description: the name of security group
68       default: nimbus_security_group
69     pcm_volumes:
70       label: CPS Cluman Cinder Volume
71       hidden: false
72       immutable: false
73       type: list
74       description: CPS Cluman Cinder Volume
75       default:
76       - 249cb355-8fdf-4382-9c3c-a2ebe767d45b
77       entry_schema:
78         type: string
79     compute_image_name:
80       hidden: false
81       immutable: false
82       type: string
83     pcm_flavor_name:
84       label: PCRF CM flavor name
85       hidden: false
86       immutable: false
87       type: string
88       description: flavor name of PCRF CM instance
89       default: cps
90     net_name:
91       hidden: false
92       immutable: false
93       type: string
94     cps_net_name:
95       label: CPS network name
96       hidden: false
97       immutable: false
98       type: string
99       description: CPS network name
100       default: int_pcrf_net_0
101     cps_net_mask:
102       label: CPS network mask
103       hidden: false
104       immutable: false
105       type: string
106       description: CPS network mask
107       default: 255.255.255.0
108     oam_net_mask:
109       label: CPS network mask
110       hidden: false
111       immutable: false
112       type: string
113       description: CPS network mask
114       default: 255.255.255.0
115     oam_net_name:
116       label: OAM network name
117       hidden: false
118       immutable: false
119       type: string
120       description: OAM network name
121       default: oam_protected_net_0
122   node_templates:
123     server_pcm_002:
124       type: org.openecomp.resource.abstract.nodes.heat.nested-pcm_v0.1
125       directives:
126       - substitutable
127       properties:
128         availabilityzone_name:
129           get_input: availabilityzone_name
130         oam_net_gw:
131           get_input: oam_net_gw
132         pcm_image_name:
133           get_input: pcm_image_name
134         security_group_name:
135           get_input: security_group_name
136         cps_net_ip:
137           get_input:
138           - cps_net_ips
139           - 0
140         pcm_flavor_name:
141           get_input: pcm_flavor_name
142         service_template_filter:
143           substitute_service_template: nested-pcm_v0.1ServiceTemplate.yaml
144           count: 1
145           mandatory: true
146         pcm_vol:
147           get_input:
148           - pcm_volumes
149           - 0
150         pcm_server_name:
151           get_input:
152           - pcm_server_names
153           - 1
154         cps_net_name:
155           get_input: cps_net_name
156         cps_net_mask:
157           get_input: cps_net_mask
158         oam_net_ip:
159           get_input:
160           - oam_net_ips
161           - 0
162         oam_net_mask:
163           get_input: oam_net_mask
164         oam_net_name:
165           get_input: oam_net_name
166     server_pcm_001:
167       type: org.openecomp.resource.abstract.nodes.heat.nested-pcm_v0.1
168       directives:
169       - substitutable
170       properties:
171         availabilityzone_name:
172           get_input: availabilityzone_name
173         oam_net_gw:
174           get_input: oam_net_gw
175         pcm_image_name:
176           get_input: pcm_image_name
177         security_group_name:
178           get_input: security_group_name
179         cps_net_ip:
180           get_input:
181           - cps_net_ips
182           - 0
183         pcm_flavor_name:
184           get_input: pcm_flavor_name
185         service_template_filter:
186           substitute_service_template: nested-pcm_v0.1ServiceTemplate.yaml
187         pcm_vol:
188           get_input:
189           - pcm_volumes
190           - 0
191         pcm_server_name:
192           get_input:
193           - pcm_server_names
194           - 0
195         cps_net_name:
196           get_input: cps_net_name
197         cps_net_mask:
198           get_input: cps_net_mask
199         oam_net_ip:
200           get_input:
201           - oam_net_ips
202           - 0
203         oam_net_mask:
204           get_input: oam_net_mask
205         oam_net_name:
206           get_input: oam_net_name
207     compute_port_0:
208       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
209       properties:
210         ip_requirements:
211         - ip_version: 4
212           ip_count_required:
213             is_required: false
214           floating_ip_count_required:
215             is_required: false
216         mac_requirements:
217           mac_count_required:
218             is_required: false
219         network:
220           get_input: net_name
221     abstract_compute:
222       type: org.openecomp.resource.abstract.nodes.compute
223       directives:
224       - substitutable
225       properties:
226         compute_compute_user_data_format:
227         - get_attribute:
228           - server_pcm_001
229           - oam_net_gw
230         vm_image_name:
231           get_input: compute_image_name
232         compute_compute_name:
233         - compute_name: null
234         vm_flavor_name:
235           compute_flavor_name: null
236         compute_compute_config_drive:
237         - get_attribute:
238           - compute_port_0
239           - tenant_id
240           - port_security_enabled
241           - device_id
242           - qos_policy
243           - allowed_address_pairs
244           - show
245           - device_owner
246           - network
247           - security_groups
248           - fixed_ips
249           - mac_address
250           - admin_state_up
251           - name
252           - subnets
253           - status
254         service_template_filter:
255           substitute_service_template: Nested_computeServiceTemplate.yaml
256           count: 1
257         index_value:
258           get_property:
259           - SELF
260           - service_template_filter
261           - index_value
262   groups:
263     hot-nimbus-pcm_v0.4_group:
264       type: org.openecomp.groups.heat.HeatStack
265       properties:
266         heat_file: ../Artifacts/hot-nimbus-pcm_v0.4.yaml
267         description: heat template that creates PCRF Cluman stack
268       members:
269       - server_pcm_002
270       - server_pcm_001
271       - compute_port_0
272       - abstract_compute