2 # Generated by scripts/gen-onap-oom-yaml.sh; MANUAL CHANGES WILL BE LOST
4 heat_template_version: 2015-10-15
5 description: ONAP on Kubernetes using OOM
16 description: The ID of the Public network for floating IP address allocation
20 description: CIDR of the OAM ONAP network
24 description: Name of the Ubuntu 16.04 image
28 description: VM flavor for Rancher
32 description: VM flavor for k8s hosts
34 integration_override_yaml:
36 description: Content for integration_override.yaml
40 type: OS::Heat::RandomString
46 type: OS::Neutron::SecurityGroup
53 rand: { get_resource: random-str }
54 description: security group used by ONAP
72 # ONAP management private network
74 type: OS::Neutron::Net
78 template: oam_network_rand
80 rand: { get_resource: random-str }
83 type: OS::Neutron::Subnet
87 template: oam_network_rand
89 rand: { get_resource: random-str }
90 network_id: { get_resource: oam_network }
91 cidr: { get_param: oam_network_cidr }
92 dns_nameservers: [ "8.8.8.8" ]
95 type: OS::Neutron::Router
97 external_gateway_info:
98 network: { get_param: public_net_id }
101 type: OS::Neutron::RouterInterface
103 router_id: { get_resource: router }
104 subnet_id: { get_resource: oam_subnet }
106 rancher_private_port:
107 type: OS::Neutron::Port
109 network: { get_resource: oam_network }
110 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
112 - { get_resource: onap_sg }
115 type: OS::Neutron::FloatingIP
117 floating_network_id: { get_param: public_net_id }
118 port_id: { get_resource: rancher_private_port }
121 type: OS::Nova::Server
124 image: { get_param: ubuntu_1604_image }
125 flavor: { get_param: rancher_vm_flavor }
128 - port: { get_resource: rancher_private_port }
129 user_data_format: RAW
133 get_file: rancher_vm_entrypoint.sh
135 __docker_proxy__: { get_param: docker_proxy }
136 __apt_proxy__: { get_param: apt_proxy }
137 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
138 __integration_override_yaml__: { get_param: integration_override_yaml }
139 __oam_network_id__: { get_resource: oam_network }
140 __oam_subnet_id__: { get_resource: oam_subnet }
141 __k8s_1_vm_ip__: { get_attr: [k8s_1_floating_ip, floating_ip_address] }
143 get_attr: [k8s_1_floating_ip, floating_ip_address],
144 get_attr: [k8s_2_floating_ip, floating_ip_address],
145 get_attr: [k8s_3_floating_ip, floating_ip_address],
146 get_attr: [k8s_4_floating_ip, floating_ip_address],
147 get_attr: [k8s_5_floating_ip, floating_ip_address],
148 get_attr: [k8s_6_floating_ip, floating_ip_address],
149 get_attr: [k8s_7_floating_ip, floating_ip_address],
150 get_attr: [k8s_8_floating_ip, floating_ip_address],
151 get_attr: [k8s_9_floating_ip, floating_ip_address],
154 type: OS::Neutron::Port
156 network: { get_resource: oam_network }
157 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
159 - { get_resource: onap_sg }
162 type: OS::Neutron::FloatingIP
164 floating_network_id: { get_param: public_net_id }
165 port_id: { get_resource: k8s_1_private_port }
168 type: OS::Nova::Server
171 image: { get_param: ubuntu_1604_image }
172 flavor: { get_param: k8s_vm_flavor }
175 - port: { get_resource: k8s_1_private_port }
176 user_data_format: RAW
180 __docker_proxy__: { get_param: docker_proxy }
181 __apt_proxy__: { get_param: apt_proxy }
182 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
184 get_file: k8s_vm_entrypoint.sh
187 type: OS::Neutron::Port
189 network: { get_resource: oam_network }
190 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
192 - { get_resource: onap_sg }
195 type: OS::Neutron::FloatingIP
197 floating_network_id: { get_param: public_net_id }
198 port_id: { get_resource: k8s_2_private_port }
201 type: OS::Nova::Server
204 image: { get_param: ubuntu_1604_image }
205 flavor: { get_param: k8s_vm_flavor }
208 - port: { get_resource: k8s_2_private_port }
209 user_data_format: RAW
213 __docker_proxy__: { get_param: docker_proxy }
214 __apt_proxy__: { get_param: apt_proxy }
215 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
217 get_file: k8s_vm_entrypoint.sh
220 type: OS::Neutron::Port
222 network: { get_resource: oam_network }
223 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
225 - { get_resource: onap_sg }
228 type: OS::Neutron::FloatingIP
230 floating_network_id: { get_param: public_net_id }
231 port_id: { get_resource: k8s_3_private_port }
234 type: OS::Nova::Server
237 image: { get_param: ubuntu_1604_image }
238 flavor: { get_param: k8s_vm_flavor }
241 - port: { get_resource: k8s_3_private_port }
242 user_data_format: RAW
246 __docker_proxy__: { get_param: docker_proxy }
247 __apt_proxy__: { get_param: apt_proxy }
248 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
250 get_file: k8s_vm_entrypoint.sh
253 type: OS::Neutron::Port
255 network: { get_resource: oam_network }
256 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
258 - { get_resource: onap_sg }
261 type: OS::Neutron::FloatingIP
263 floating_network_id: { get_param: public_net_id }
264 port_id: { get_resource: k8s_4_private_port }
267 type: OS::Nova::Server
270 image: { get_param: ubuntu_1604_image }
271 flavor: { get_param: k8s_vm_flavor }
274 - port: { get_resource: k8s_4_private_port }
275 user_data_format: RAW
279 __docker_proxy__: { get_param: docker_proxy }
280 __apt_proxy__: { get_param: apt_proxy }
281 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
283 get_file: k8s_vm_entrypoint.sh
286 type: OS::Neutron::Port
288 network: { get_resource: oam_network }
289 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
291 - { get_resource: onap_sg }
294 type: OS::Neutron::FloatingIP
296 floating_network_id: { get_param: public_net_id }
297 port_id: { get_resource: k8s_5_private_port }
300 type: OS::Nova::Server
303 image: { get_param: ubuntu_1604_image }
304 flavor: { get_param: k8s_vm_flavor }
307 - port: { get_resource: k8s_5_private_port }
308 user_data_format: RAW
312 __docker_proxy__: { get_param: docker_proxy }
313 __apt_proxy__: { get_param: apt_proxy }
314 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
316 get_file: k8s_vm_entrypoint.sh
319 type: OS::Neutron::Port
321 network: { get_resource: oam_network }
322 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
324 - { get_resource: onap_sg }
327 type: OS::Neutron::FloatingIP
329 floating_network_id: { get_param: public_net_id }
330 port_id: { get_resource: k8s_6_private_port }
333 type: OS::Nova::Server
336 image: { get_param: ubuntu_1604_image }
337 flavor: { get_param: k8s_vm_flavor }
340 - port: { get_resource: k8s_6_private_port }
341 user_data_format: RAW
345 __docker_proxy__: { get_param: docker_proxy }
346 __apt_proxy__: { get_param: apt_proxy }
347 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
349 get_file: k8s_vm_entrypoint.sh
352 type: OS::Neutron::Port
354 network: { get_resource: oam_network }
355 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
357 - { get_resource: onap_sg }
360 type: OS::Neutron::FloatingIP
362 floating_network_id: { get_param: public_net_id }
363 port_id: { get_resource: k8s_7_private_port }
366 type: OS::Nova::Server
369 image: { get_param: ubuntu_1604_image }
370 flavor: { get_param: k8s_vm_flavor }
373 - port: { get_resource: k8s_7_private_port }
374 user_data_format: RAW
378 __docker_proxy__: { get_param: docker_proxy }
379 __apt_proxy__: { get_param: apt_proxy }
380 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
382 get_file: k8s_vm_entrypoint.sh
385 type: OS::Neutron::Port
387 network: { get_resource: oam_network }
388 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
390 - { get_resource: onap_sg }
393 type: OS::Neutron::FloatingIP
395 floating_network_id: { get_param: public_net_id }
396 port_id: { get_resource: k8s_8_private_port }
399 type: OS::Nova::Server
402 image: { get_param: ubuntu_1604_image }
403 flavor: { get_param: k8s_vm_flavor }
406 - port: { get_resource: k8s_8_private_port }
407 user_data_format: RAW
411 __docker_proxy__: { get_param: docker_proxy }
412 __apt_proxy__: { get_param: apt_proxy }
413 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
415 get_file: k8s_vm_entrypoint.sh
418 type: OS::Neutron::Port
420 network: { get_resource: oam_network }
421 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
423 - { get_resource: onap_sg }
426 type: OS::Neutron::FloatingIP
428 floating_network_id: { get_param: public_net_id }
429 port_id: { get_resource: k8s_9_private_port }
432 type: OS::Nova::Server
435 image: { get_param: ubuntu_1604_image }
436 flavor: { get_param: k8s_vm_flavor }
439 - port: { get_resource: k8s_9_private_port }
440 user_data_format: RAW
444 __docker_proxy__: { get_param: docker_proxy }
445 __apt_proxy__: { get_param: apt_proxy }
446 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
448 get_file: k8s_vm_entrypoint.sh
452 description: The IP address of the rancher instance
453 value: { get_attr: [rancher_floating_ip, floating_ip_address] }
456 description: The IP address of the k8s_1 instance
457 value: { get_attr: [k8s_1_floating_ip, floating_ip_address] }
460 description: The IP address of the k8s_2 instance
461 value: { get_attr: [k8s_2_floating_ip, floating_ip_address] }
464 description: The IP address of the k8s_3 instance
465 value: { get_attr: [k8s_3_floating_ip, floating_ip_address] }
468 description: The IP address of the k8s_4 instance
469 value: { get_attr: [k8s_4_floating_ip, floating_ip_address] }
472 description: The IP address of the k8s_5 instance
473 value: { get_attr: [k8s_5_floating_ip, floating_ip_address] }
476 description: The IP address of the k8s_6 instance
477 value: { get_attr: [k8s_6_floating_ip, floating_ip_address] }
480 description: The IP address of the k8s_7 instance
481 value: { get_attr: [k8s_7_floating_ip, floating_ip_address] }
484 description: The IP address of the k8s_8 instance
485 value: { get_attr: [k8s_8_floating_ip, floating_ip_address] }
488 description: The IP address of the k8s_9 instance
489 value: { get_attr: [k8s_9_floating_ip, floating_ip_address] }