push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / securityrulestoportconnection / securityrulestoportconnectiongetresource / inputfiles / FEAdd_On_Module_vLBAgentTemplate.yaml
1 heat_template_version: 2014-10-16
2
3 parameters:
4   domain_name:
5     type: string
6   vlb_agent_image_name:
7     type: string
8   manager_name_0:
9     type: string
10   manager_oam_direct_ip_0:
11     type: string
12   ntp_timezone:
13     type: string
14   oam_private_net_name:
15     type: string
16   packet_internal_network:
17     type: string
18   packet_mirror_network:
19     type: string
20   region_name:
21     type: string
22   rpmrepository_ip_0:
23     type: string
24   security_group:
25     type: string
26   tenant_name:
27     type: string
28   availability_zone_0:
29     type: string
30   vLBAgent_cluster_name:
31     type: string
32   vLBAgent_flavor_name:
33     type: string
34   vLBAgent_index:
35     type: number
36   vLBAgent_names:
37     type: comma_delimited_list
38   vLBAgent_node_count:
39     type: number
40   vLBAgent_type:
41     type: string
42   vLBAgent_version_name:
43     type: string
44   vLBAgent_volume_name_0:
45     type: string
46   vLBAgent_volume_name_1:
47     type: string
48   vLBAgent_volume_name_2:
49     type: string
50   vLBAgent_volume_size_0:
51     type: number
52   vLBAgent_volume_size_1:
53     type: number
54   vLBAgent_volume_size_2:
55     type: number
56   vLBAgent_volume_type_0:
57     type: string
58   vLBAgent_volume_type_1:
59     type: string
60   vLBAgent_volume_type_2:
61     type: string
62   vLB_cluster_name:
63     type: string
64   vLB_node_count:
65     type: number
66   vProbe_cluster_name:
67     type: string
68   vf_module_id:
69     type: string
70   vf_module_name:
71     type: string
72   vnf_id:
73     type: string
74 resources:
75   oam_private_net_network_port:
76     properties:
77       network:
78         get_param: oam_private_net_name
79       security_groups:
80       - get_param: security_group
81     type: OS::Neutron::Port
82   packet_internal_network_port:
83     properties:
84       network:
85         get_param: packet_internal_network
86       security_groups:
87       - get_param: security_group
88     type: OS::Neutron::Port
89   packet_mirror_network_port:
90     properties:
91       network:
92         get_param: packet_mirror_network
93       security_groups:
94       - get_param: security_group
95     type: OS::Neutron::Port
96   vLBAgentInstance:
97     properties:
98       availability_zone:
99         get_param: availability_zone_0
100       config_drive: true
101       flavor:
102         get_param: vLBAgent_flavor_name
103       image:
104         get_param: vlb_agent_image_name
105       metadata:
106         DPDK: DPDK_IP
107         cluster_name:
108           get_param: vLBAgent_cluster_name
109         machine_name:
110           get_param:
111           - vLBAgent_names
112           - get_param: vLBAgent_index
113         machine_type: vLBAgent
114         manager_oam_direct_ip_0:
115           get_param: manager_oam_direct_ip_0
116         mount_colon__slash_config:
117           get_resource: vLBAgent_volume_2
118         mount_colon__slash_data:
119           get_resource: vLBAgent_volume_0
120         mount_colon__slash_log:
121           get_resource: vLBAgent_volume_1
122         ntp_timezone:
123           get_param: ntp_timezone
124         oam_private_network_cidr:
125           get_attr:
126           - oam_private_net_network_port
127           - subnets
128           - 0
129           - cidr
130         oam_private_network_ip_0:
131           get_attr:
132           - oam_private_net_network_port
133           - fixed_ip_0s
134           - 0
135           - ip_address
136         packet_internal_network_cidr:
137           get_attr:
138           - packet_internal_network_port
139           - subnets
140           - 0
141           - cidr
142         packet_internal_network_ip_0:
143           get_attr:
144           - packet_internal_network_port
145           - fixed_ip_0s
146           - 0
147           - ip_address
148         packet_mirror_network_cidr:
149           get_attr:
150           - packet_mirror_network_port
151           - subnets
152           - 0
153           - cidr
154         packet_mirror_network_ip_0:
155           get_attr:
156           - packet_mirror_network_port
157           - fixed_ip_0s
158           - 0
159           - ip_address
160         region:
161           get_param: region_name
162         repo_ip_0:
163           get_param: rpmrepository_ip_0
164         tenant:
165           get_param: tenant_name
166         vLBAgentInstance:
167           get_param: vLBAgent_index
168         vLBAgent_id:
169           get_attr:
170           - vLBAgent_id
171           - value
172         vLBAgent_name:
173           get_param:
174           - vLBAgent_names
175           - get_param: vLBAgent_index
176         vLBAgent_type:
177           get_param: vLBAgent_type
178         vLBAgent_version_name:
179           get_param: vLBAgent_version_name
180         vLB_node_count:
181           get_param: vLB_node_count
182         version_number:
183           get_param: vLBAgent_version_name
184         vf_module_id:
185           get_param: vf_module_id
186         vf_module_name:
187           get_param: vf_module_name
188         vnf_id:
189           get_param: vnf_id
190       name:
191         get_param:
192         - vLBAgent_names
193         - get_param: vLBAgent_index
194       networks:
195       - port:
196           get_resource: oam_private_net_network_port
197       - port:
198           get_resource: packet_mirror_network_port
199       - port:
200           get_resource: packet_internal_network_port
201       personality:
202         /root/CheckAvailability/check_availability.py:
203           get_file: check_availability.py
204         /root/RegisterStatus/register_status.py:
205           get_file: register_status.py
206         /root/call_home.py:
207           get_file: call_home.py
208         /root/dependencies_with_vLB.json:
209           get_file: vlbagentdependencies_with_vLB.json
210         /root/dependencies_without_vLB.json:
211           get_file: vlbagentdependencies_without_vLB.json
212         /tmp/wait_for_resources.py:
213           get_file: wait_for_resources.py
214       user_data:
215         str_replace:
216           params:
217             '%domain_name%':
218               get_param: domain_name
219             '%manager_hostname%':
220               get_param: manager_name_0
221             '%manager_oam_direct_ip_0%':
222               get_param: manager_oam_direct_ip_0
223             '%rpm_repo_ip_0%':
224               get_param: rpmrepository_ip_0
225             '%vLBAgent_cluster_name%':
226               get_param: vLBAgent_cluster_name
227             '%vLBAgent_config%':
228               get_resource: vLBAgent_volume_2
229             '%vLBAgent_data%':
230               get_resource: vLBAgent_volume_0
231             '%vLBAgent_id_number%':
232               get_attr:
233               - vLBAgent_id
234               - value
235             '%vLBAgent_log%':
236               get_resource: vLBAgent_volume_1
237             '%vLBAgent_node_count%':
238               get_param: vLBAgent_node_count
239             '%vLBAgent_version_name%':
240               get_param: vLBAgent_version_name
241             '%vLB_cluster_name%':
242               get_param: vLB_cluster_name
243             '%vLB_node_count%':
244               get_param: vLB_node_count
245             '%vProbe_cluster_name%':
246               get_param: vProbe_cluster_name
247           template:
248             get_file: FEAdd_On_Module_vLBAgentCloudConfig
249       user_data_format: RAW
250     type: OS::Nova::Server
251   vLBAgent_id:
252     properties:
253       length: 4
254       sequence: digits
255     type: OS::Heat::RandomString
256   vLBAgent_volume_0:
257     properties:
258       description:
259         get_param: vLBAgent_volume_name_0
260       size:
261         get_param: vLBAgent_volume_size_0
262       volume_type:
263         get_param: vLBAgent_volume_type_0
264     type: OS::Cinder::Volume
265   vLBAgent_volume_0_att:
266     properties:
267       instance_uuid:
268         get_resource: vLBAgentInstance
269       volume_id:
270         get_resource: vLBAgent_volume_0
271     type: OS::Cinder::VolumeAttachment
272   vLBAgent_volume_1:
273     properties:
274       description:
275         get_param: vLBAgent_volume_name_1
276       size:
277         get_param: vLBAgent_volume_size_1
278       volume_type:
279         get_param: vLBAgent_volume_type_1
280     type: OS::Cinder::Volume
281   vLBAgent_volume_1_att:
282     properties:
283       instance_uuid:
284         get_resource: vLBAgentInstance
285       volume_id:
286         get_resource: vLBAgent_volume_1
287     type: OS::Cinder::VolumeAttachment
288   vLBAgent_volume_2:
289     properties:
290       description:
291         get_param: vLBAgent_volume_name_2
292       size:
293         get_param: vLBAgent_volume_size_2
294       volume_type:
295         get_param: vLBAgent_volume_type_2
296     type: OS::Cinder::Volume
297   vLBAgent_volume_2_att:
298     properties:
299       instance_uuid:
300         get_resource: vLBAgentInstance
301       volume_id:
302         get_resource: vLBAgent_volume_2
303     type: OS::Cinder::VolumeAttachment