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
44 default: "refs/heads/master"
48 default: "docker-manifest.csv"
56 type: OS::Heat::RandomString
62 type: OS::Neutron::SecurityGroup
69 rand: { get_resource: random-str }
70 description: security group used by ONAP
88 # ONAP management private network
90 type: OS::Neutron::Net
94 template: oam_network_rand
96 rand: { get_resource: random-str }
99 type: OS::Neutron::Subnet
103 template: oam_network_rand
105 rand: { get_resource: random-str }
106 network_id: { get_resource: oam_network }
107 cidr: { get_param: oam_network_cidr }
108 dns_nameservers: [ "8.8.8.8" ]
111 type: OS::Neutron::Router
113 external_gateway_info:
114 network: { get_param: public_net_id }
117 type: OS::Neutron::RouterInterface
119 router_id: { get_resource: router }
120 subnet_id: { get_resource: oam_subnet }
122 rancher_private_port:
123 type: OS::Neutron::Port
125 network: { get_resource: oam_network }
126 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
128 - { get_resource: onap_sg }
131 type: OS::Neutron::FloatingIP
133 floating_network_id: { get_param: public_net_id }
134 port_id: { get_resource: rancher_private_port }
137 type: OS::Nova::Server
140 image: { get_param: ubuntu_1604_image }
141 flavor: { get_param: rancher_vm_flavor }
142 key_name: { get_param: key_name }
144 - port: { get_resource: rancher_private_port }
145 user_data_format: RAW
149 get_file: rancher_vm_entrypoint.sh
151 __docker_proxy__: { get_param: docker_proxy }
152 __apt_proxy__: { get_param: apt_proxy }
153 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
154 __integration_override_yaml__: { get_param: integration_override_yaml }
155 __gerrit_branch__: { get_param: gerrit_branch }
156 __gerrit_refspec__: { get_param: gerrit_refspec }
157 __docker_manifest__: { get_param: docker_manifest }
158 __oam_network_id__: { get_resource: oam_network }
159 __oam_subnet_id__: { get_resource: oam_subnet }
160 __k8s_1_vm_ip__: { get_attr: [k8s_1_floating_ip, floating_ip_address] }
162 get_attr: [k8s_1_floating_ip, floating_ip_address],
163 get_attr: [k8s_2_floating_ip, floating_ip_address],
164 get_attr: [k8s_3_floating_ip, floating_ip_address],
165 get_attr: [k8s_4_floating_ip, floating_ip_address],
166 get_attr: [k8s_5_floating_ip, floating_ip_address],
167 get_attr: [k8s_6_floating_ip, floating_ip_address],
168 get_attr: [k8s_7_floating_ip, floating_ip_address],
169 get_attr: [k8s_8_floating_ip, floating_ip_address],
170 get_attr: [k8s_9_floating_ip, floating_ip_address],
171 get_attr: [k8s_10_floating_ip, floating_ip_address],
172 get_attr: [k8s_11_floating_ip, floating_ip_address],
175 type: OS::Neutron::Port
177 network: { get_resource: oam_network }
178 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
180 - { get_resource: onap_sg }
183 type: OS::Neutron::FloatingIP
185 floating_network_id: { get_param: public_net_id }
186 port_id: { get_resource: k8s_1_private_port }
189 type: OS::Nova::Server
192 image: { get_param: ubuntu_1604_image }
193 flavor: { get_param: k8s_vm_flavor }
194 key_name: { get_param: key_name }
196 - port: { get_resource: k8s_1_private_port }
197 user_data_format: RAW
201 __docker_proxy__: { get_param: docker_proxy }
202 __apt_proxy__: { get_param: apt_proxy }
203 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
205 get_file: k8s_vm_entrypoint.sh
208 type: OS::Neutron::Port
210 network: { get_resource: oam_network }
211 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
213 - { get_resource: onap_sg }
216 type: OS::Neutron::FloatingIP
218 floating_network_id: { get_param: public_net_id }
219 port_id: { get_resource: k8s_2_private_port }
222 type: OS::Nova::Server
225 image: { get_param: ubuntu_1604_image }
226 flavor: { get_param: k8s_vm_flavor }
227 key_name: { get_param: key_name }
229 - port: { get_resource: k8s_2_private_port }
230 user_data_format: RAW
234 __docker_proxy__: { get_param: docker_proxy }
235 __apt_proxy__: { get_param: apt_proxy }
236 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
238 get_file: k8s_vm_entrypoint.sh
241 type: OS::Neutron::Port
243 network: { get_resource: oam_network }
244 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
246 - { get_resource: onap_sg }
249 type: OS::Neutron::FloatingIP
251 floating_network_id: { get_param: public_net_id }
252 port_id: { get_resource: k8s_3_private_port }
255 type: OS::Nova::Server
258 image: { get_param: ubuntu_1604_image }
259 flavor: { get_param: k8s_vm_flavor }
260 key_name: { get_param: key_name }
262 - port: { get_resource: k8s_3_private_port }
263 user_data_format: RAW
267 __docker_proxy__: { get_param: docker_proxy }
268 __apt_proxy__: { get_param: apt_proxy }
269 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
271 get_file: k8s_vm_entrypoint.sh
274 type: OS::Neutron::Port
276 network: { get_resource: oam_network }
277 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
279 - { get_resource: onap_sg }
282 type: OS::Neutron::FloatingIP
284 floating_network_id: { get_param: public_net_id }
285 port_id: { get_resource: k8s_4_private_port }
288 type: OS::Nova::Server
291 image: { get_param: ubuntu_1604_image }
292 flavor: { get_param: k8s_vm_flavor }
293 key_name: { get_param: key_name }
295 - port: { get_resource: k8s_4_private_port }
296 user_data_format: RAW
300 __docker_proxy__: { get_param: docker_proxy }
301 __apt_proxy__: { get_param: apt_proxy }
302 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
304 get_file: k8s_vm_entrypoint.sh
307 type: OS::Neutron::Port
309 network: { get_resource: oam_network }
310 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
312 - { get_resource: onap_sg }
315 type: OS::Neutron::FloatingIP
317 floating_network_id: { get_param: public_net_id }
318 port_id: { get_resource: k8s_5_private_port }
321 type: OS::Nova::Server
324 image: { get_param: ubuntu_1604_image }
325 flavor: { get_param: k8s_vm_flavor }
326 key_name: { get_param: key_name }
328 - port: { get_resource: k8s_5_private_port }
329 user_data_format: RAW
333 __docker_proxy__: { get_param: docker_proxy }
334 __apt_proxy__: { get_param: apt_proxy }
335 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
337 get_file: k8s_vm_entrypoint.sh
340 type: OS::Neutron::Port
342 network: { get_resource: oam_network }
343 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
345 - { get_resource: onap_sg }
348 type: OS::Neutron::FloatingIP
350 floating_network_id: { get_param: public_net_id }
351 port_id: { get_resource: k8s_6_private_port }
354 type: OS::Nova::Server
357 image: { get_param: ubuntu_1604_image }
358 flavor: { get_param: k8s_vm_flavor }
359 key_name: { get_param: key_name }
361 - port: { get_resource: k8s_6_private_port }
362 user_data_format: RAW
366 __docker_proxy__: { get_param: docker_proxy }
367 __apt_proxy__: { get_param: apt_proxy }
368 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
370 get_file: k8s_vm_entrypoint.sh
373 type: OS::Neutron::Port
375 network: { get_resource: oam_network }
376 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
378 - { get_resource: onap_sg }
381 type: OS::Neutron::FloatingIP
383 floating_network_id: { get_param: public_net_id }
384 port_id: { get_resource: k8s_7_private_port }
387 type: OS::Nova::Server
390 image: { get_param: ubuntu_1604_image }
391 flavor: { get_param: k8s_vm_flavor }
392 key_name: { get_param: key_name }
394 - port: { get_resource: k8s_7_private_port }
395 user_data_format: RAW
399 __docker_proxy__: { get_param: docker_proxy }
400 __apt_proxy__: { get_param: apt_proxy }
401 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
403 get_file: k8s_vm_entrypoint.sh
406 type: OS::Neutron::Port
408 network: { get_resource: oam_network }
409 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
411 - { get_resource: onap_sg }
414 type: OS::Neutron::FloatingIP
416 floating_network_id: { get_param: public_net_id }
417 port_id: { get_resource: k8s_8_private_port }
420 type: OS::Nova::Server
423 image: { get_param: ubuntu_1604_image }
424 flavor: { get_param: k8s_vm_flavor }
425 key_name: { get_param: key_name }
427 - port: { get_resource: k8s_8_private_port }
428 user_data_format: RAW
432 __docker_proxy__: { get_param: docker_proxy }
433 __apt_proxy__: { get_param: apt_proxy }
434 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
436 get_file: k8s_vm_entrypoint.sh
439 type: OS::Neutron::Port
441 network: { get_resource: oam_network }
442 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
444 - { get_resource: onap_sg }
447 type: OS::Neutron::FloatingIP
449 floating_network_id: { get_param: public_net_id }
450 port_id: { get_resource: k8s_9_private_port }
453 type: OS::Nova::Server
456 image: { get_param: ubuntu_1604_image }
457 flavor: { get_param: k8s_vm_flavor }
458 key_name: { get_param: key_name }
460 - port: { get_resource: k8s_9_private_port }
461 user_data_format: RAW
465 __docker_proxy__: { get_param: docker_proxy }
466 __apt_proxy__: { get_param: apt_proxy }
467 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
469 get_file: k8s_vm_entrypoint.sh
472 type: OS::Neutron::Port
474 network: { get_resource: oam_network }
475 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
477 - { get_resource: onap_sg }
480 type: OS::Neutron::FloatingIP
482 floating_network_id: { get_param: public_net_id }
483 port_id: { get_resource: k8s_10_private_port }
486 type: OS::Nova::Server
489 image: { get_param: ubuntu_1604_image }
490 flavor: { get_param: k8s_vm_flavor }
491 key_name: { get_param: key_name }
493 - port: { get_resource: k8s_10_private_port }
494 user_data_format: RAW
498 __docker_proxy__: { get_param: docker_proxy }
499 __apt_proxy__: { get_param: apt_proxy }
500 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
502 get_file: k8s_vm_entrypoint.sh
505 type: OS::Neutron::Port
507 network: { get_resource: oam_network }
508 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
510 - { get_resource: onap_sg }
513 type: OS::Neutron::FloatingIP
515 floating_network_id: { get_param: public_net_id }
516 port_id: { get_resource: k8s_11_private_port }
519 type: OS::Nova::Server
522 image: { get_param: ubuntu_1604_image }
523 flavor: { get_param: k8s_vm_flavor }
524 key_name: { get_param: key_name }
526 - port: { get_resource: k8s_11_private_port }
527 user_data_format: RAW
531 __docker_proxy__: { get_param: docker_proxy }
532 __apt_proxy__: { get_param: apt_proxy }
533 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
535 get_file: k8s_vm_entrypoint.sh
539 description: The IP address of the rancher instance
540 value: { get_attr: [rancher_floating_ip, floating_ip_address] }
543 description: The IP address of the k8s_1 instance
544 value: { get_attr: [k8s_1_floating_ip, floating_ip_address] }
547 description: The IP address of the k8s_2 instance
548 value: { get_attr: [k8s_2_floating_ip, floating_ip_address] }
551 description: The IP address of the k8s_3 instance
552 value: { get_attr: [k8s_3_floating_ip, floating_ip_address] }
555 description: The IP address of the k8s_4 instance
556 value: { get_attr: [k8s_4_floating_ip, floating_ip_address] }
559 description: The IP address of the k8s_5 instance
560 value: { get_attr: [k8s_5_floating_ip, floating_ip_address] }
563 description: The IP address of the k8s_6 instance
564 value: { get_attr: [k8s_6_floating_ip, floating_ip_address] }
567 description: The IP address of the k8s_7 instance
568 value: { get_attr: [k8s_7_floating_ip, floating_ip_address] }
571 description: The IP address of the k8s_8 instance
572 value: { get_attr: [k8s_8_floating_ip, floating_ip_address] }
575 description: The IP address of the k8s_9 instance
576 value: { get_attr: [k8s_9_floating_ip, floating_ip_address] }
579 description: The IP address of the k8s_10 instance
580 value: { get_attr: [k8s_10_floating_ip, floating_ip_address] }
583 description: The IP address of the k8s_11 instance
584 value: { get_attr: [k8s_11_floating_ip, floating_ip_address] }