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],
152 get_attr: [k8s_10_floating_ip, floating_ip_address],
153 get_attr: [k8s_11_floating_ip, floating_ip_address],
156 type: OS::Neutron::Port
158 network: { get_resource: oam_network }
159 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
161 - { get_resource: onap_sg }
164 type: OS::Neutron::FloatingIP
166 floating_network_id: { get_param: public_net_id }
167 port_id: { get_resource: k8s_1_private_port }
170 type: OS::Nova::Server
173 image: { get_param: ubuntu_1604_image }
174 flavor: { get_param: k8s_vm_flavor }
177 - port: { get_resource: k8s_1_private_port }
178 user_data_format: RAW
182 __docker_proxy__: { get_param: docker_proxy }
183 __apt_proxy__: { get_param: apt_proxy }
184 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
186 get_file: k8s_vm_entrypoint.sh
189 type: OS::Neutron::Port
191 network: { get_resource: oam_network }
192 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
194 - { get_resource: onap_sg }
197 type: OS::Neutron::FloatingIP
199 floating_network_id: { get_param: public_net_id }
200 port_id: { get_resource: k8s_2_private_port }
203 type: OS::Nova::Server
206 image: { get_param: ubuntu_1604_image }
207 flavor: { get_param: k8s_vm_flavor }
210 - port: { get_resource: k8s_2_private_port }
211 user_data_format: RAW
215 __docker_proxy__: { get_param: docker_proxy }
216 __apt_proxy__: { get_param: apt_proxy }
217 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
219 get_file: k8s_vm_entrypoint.sh
222 type: OS::Neutron::Port
224 network: { get_resource: oam_network }
225 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
227 - { get_resource: onap_sg }
230 type: OS::Neutron::FloatingIP
232 floating_network_id: { get_param: public_net_id }
233 port_id: { get_resource: k8s_3_private_port }
236 type: OS::Nova::Server
239 image: { get_param: ubuntu_1604_image }
240 flavor: { get_param: k8s_vm_flavor }
243 - port: { get_resource: k8s_3_private_port }
244 user_data_format: RAW
248 __docker_proxy__: { get_param: docker_proxy }
249 __apt_proxy__: { get_param: apt_proxy }
250 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
252 get_file: k8s_vm_entrypoint.sh
255 type: OS::Neutron::Port
257 network: { get_resource: oam_network }
258 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
260 - { get_resource: onap_sg }
263 type: OS::Neutron::FloatingIP
265 floating_network_id: { get_param: public_net_id }
266 port_id: { get_resource: k8s_4_private_port }
269 type: OS::Nova::Server
272 image: { get_param: ubuntu_1604_image }
273 flavor: { get_param: k8s_vm_flavor }
276 - port: { get_resource: k8s_4_private_port }
277 user_data_format: RAW
281 __docker_proxy__: { get_param: docker_proxy }
282 __apt_proxy__: { get_param: apt_proxy }
283 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
285 get_file: k8s_vm_entrypoint.sh
288 type: OS::Neutron::Port
290 network: { get_resource: oam_network }
291 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
293 - { get_resource: onap_sg }
296 type: OS::Neutron::FloatingIP
298 floating_network_id: { get_param: public_net_id }
299 port_id: { get_resource: k8s_5_private_port }
302 type: OS::Nova::Server
305 image: { get_param: ubuntu_1604_image }
306 flavor: { get_param: k8s_vm_flavor }
309 - port: { get_resource: k8s_5_private_port }
310 user_data_format: RAW
314 __docker_proxy__: { get_param: docker_proxy }
315 __apt_proxy__: { get_param: apt_proxy }
316 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
318 get_file: k8s_vm_entrypoint.sh
321 type: OS::Neutron::Port
323 network: { get_resource: oam_network }
324 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
326 - { get_resource: onap_sg }
329 type: OS::Neutron::FloatingIP
331 floating_network_id: { get_param: public_net_id }
332 port_id: { get_resource: k8s_6_private_port }
335 type: OS::Nova::Server
338 image: { get_param: ubuntu_1604_image }
339 flavor: { get_param: k8s_vm_flavor }
342 - port: { get_resource: k8s_6_private_port }
343 user_data_format: RAW
347 __docker_proxy__: { get_param: docker_proxy }
348 __apt_proxy__: { get_param: apt_proxy }
349 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
351 get_file: k8s_vm_entrypoint.sh
354 type: OS::Neutron::Port
356 network: { get_resource: oam_network }
357 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
359 - { get_resource: onap_sg }
362 type: OS::Neutron::FloatingIP
364 floating_network_id: { get_param: public_net_id }
365 port_id: { get_resource: k8s_7_private_port }
368 type: OS::Nova::Server
371 image: { get_param: ubuntu_1604_image }
372 flavor: { get_param: k8s_vm_flavor }
375 - port: { get_resource: k8s_7_private_port }
376 user_data_format: RAW
380 __docker_proxy__: { get_param: docker_proxy }
381 __apt_proxy__: { get_param: apt_proxy }
382 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
384 get_file: k8s_vm_entrypoint.sh
387 type: OS::Neutron::Port
389 network: { get_resource: oam_network }
390 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
392 - { get_resource: onap_sg }
395 type: OS::Neutron::FloatingIP
397 floating_network_id: { get_param: public_net_id }
398 port_id: { get_resource: k8s_8_private_port }
401 type: OS::Nova::Server
404 image: { get_param: ubuntu_1604_image }
405 flavor: { get_param: k8s_vm_flavor }
408 - port: { get_resource: k8s_8_private_port }
409 user_data_format: RAW
413 __docker_proxy__: { get_param: docker_proxy }
414 __apt_proxy__: { get_param: apt_proxy }
415 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
417 get_file: k8s_vm_entrypoint.sh
420 type: OS::Neutron::Port
422 network: { get_resource: oam_network }
423 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
425 - { get_resource: onap_sg }
428 type: OS::Neutron::FloatingIP
430 floating_network_id: { get_param: public_net_id }
431 port_id: { get_resource: k8s_9_private_port }
434 type: OS::Nova::Server
437 image: { get_param: ubuntu_1604_image }
438 flavor: { get_param: k8s_vm_flavor }
441 - port: { get_resource: k8s_9_private_port }
442 user_data_format: RAW
446 __docker_proxy__: { get_param: docker_proxy }
447 __apt_proxy__: { get_param: apt_proxy }
448 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
450 get_file: k8s_vm_entrypoint.sh
453 type: OS::Neutron::Port
455 network: { get_resource: oam_network }
456 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
458 - { get_resource: onap_sg }
461 type: OS::Neutron::FloatingIP
463 floating_network_id: { get_param: public_net_id }
464 port_id: { get_resource: k8s_10_private_port }
467 type: OS::Nova::Server
470 image: { get_param: ubuntu_1604_image }
471 flavor: { get_param: k8s_vm_flavor }
474 - port: { get_resource: k8s_10_private_port }
475 user_data_format: RAW
479 __docker_proxy__: { get_param: docker_proxy }
480 __apt_proxy__: { get_param: apt_proxy }
481 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
483 get_file: k8s_vm_entrypoint.sh
486 type: OS::Neutron::Port
488 network: { get_resource: oam_network }
489 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
491 - { get_resource: onap_sg }
494 type: OS::Neutron::FloatingIP
496 floating_network_id: { get_param: public_net_id }
497 port_id: { get_resource: k8s_11_private_port }
500 type: OS::Nova::Server
503 image: { get_param: ubuntu_1604_image }
504 flavor: { get_param: k8s_vm_flavor }
507 - port: { get_resource: k8s_11_private_port }
508 user_data_format: RAW
512 __docker_proxy__: { get_param: docker_proxy }
513 __apt_proxy__: { get_param: apt_proxy }
514 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
516 get_file: k8s_vm_entrypoint.sh
520 description: The IP address of the rancher instance
521 value: { get_attr: [rancher_floating_ip, floating_ip_address] }
524 description: The IP address of the k8s_1 instance
525 value: { get_attr: [k8s_1_floating_ip, floating_ip_address] }
528 description: The IP address of the k8s_2 instance
529 value: { get_attr: [k8s_2_floating_ip, floating_ip_address] }
532 description: The IP address of the k8s_3 instance
533 value: { get_attr: [k8s_3_floating_ip, floating_ip_address] }
536 description: The IP address of the k8s_4 instance
537 value: { get_attr: [k8s_4_floating_ip, floating_ip_address] }
540 description: The IP address of the k8s_5 instance
541 value: { get_attr: [k8s_5_floating_ip, floating_ip_address] }
544 description: The IP address of the k8s_6 instance
545 value: { get_attr: [k8s_6_floating_ip, floating_ip_address] }
548 description: The IP address of the k8s_7 instance
549 value: { get_attr: [k8s_7_floating_ip, floating_ip_address] }
552 description: The IP address of the k8s_8 instance
553 value: { get_attr: [k8s_8_floating_ip, floating_ip_address] }
556 description: The IP address of the k8s_9 instance
557 value: { get_attr: [k8s_9_floating_ip, floating_ip_address] }
560 description: The IP address of the k8s_10 instance
561 value: { get_attr: [k8s_10_floating_ip, floating_ip_address] }
564 description: The IP address of the k8s_11 instance
565 value: { get_attr: [k8s_11_floating_ip, floating_ip_address] }