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 }
142 get_attr: [k8s_1_floating_ip, floating_ip_address],
143 get_attr: [k8s_2_floating_ip, floating_ip_address],
144 get_attr: [k8s_3_floating_ip, floating_ip_address],
145 get_attr: [k8s_4_floating_ip, floating_ip_address],
146 get_attr: [k8s_5_floating_ip, floating_ip_address],
147 get_attr: [k8s_6_floating_ip, floating_ip_address],
148 get_attr: [k8s_7_floating_ip, floating_ip_address],
149 get_attr: [k8s_8_floating_ip, floating_ip_address],
150 get_attr: [k8s_9_floating_ip, floating_ip_address],
153 type: OS::Neutron::Port
155 network: { get_resource: oam_network }
156 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
158 - { get_resource: onap_sg }
161 type: OS::Neutron::FloatingIP
163 floating_network_id: { get_param: public_net_id }
164 port_id: { get_resource: k8s_1_private_port }
167 type: OS::Nova::Server
170 image: { get_param: ubuntu_1604_image }
171 flavor: { get_param: k8s_vm_flavor }
174 - port: { get_resource: k8s_1_private_port }
175 user_data_format: RAW
179 __docker_proxy__: { get_param: docker_proxy }
180 __apt_proxy__: { get_param: apt_proxy }
181 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
183 get_file: k8s_vm_entrypoint.sh
186 type: OS::Neutron::Port
188 network: { get_resource: oam_network }
189 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
191 - { get_resource: onap_sg }
194 type: OS::Neutron::FloatingIP
196 floating_network_id: { get_param: public_net_id }
197 port_id: { get_resource: k8s_2_private_port }
200 type: OS::Nova::Server
203 image: { get_param: ubuntu_1604_image }
204 flavor: { get_param: k8s_vm_flavor }
207 - port: { get_resource: k8s_2_private_port }
208 user_data_format: RAW
212 __docker_proxy__: { get_param: docker_proxy }
213 __apt_proxy__: { get_param: apt_proxy }
214 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
216 get_file: k8s_vm_entrypoint.sh
219 type: OS::Neutron::Port
221 network: { get_resource: oam_network }
222 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
224 - { get_resource: onap_sg }
227 type: OS::Neutron::FloatingIP
229 floating_network_id: { get_param: public_net_id }
230 port_id: { get_resource: k8s_3_private_port }
233 type: OS::Nova::Server
236 image: { get_param: ubuntu_1604_image }
237 flavor: { get_param: k8s_vm_flavor }
240 - port: { get_resource: k8s_3_private_port }
241 user_data_format: RAW
245 __docker_proxy__: { get_param: docker_proxy }
246 __apt_proxy__: { get_param: apt_proxy }
247 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
249 get_file: k8s_vm_entrypoint.sh
252 type: OS::Neutron::Port
254 network: { get_resource: oam_network }
255 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
257 - { get_resource: onap_sg }
260 type: OS::Neutron::FloatingIP
262 floating_network_id: { get_param: public_net_id }
263 port_id: { get_resource: k8s_4_private_port }
266 type: OS::Nova::Server
269 image: { get_param: ubuntu_1604_image }
270 flavor: { get_param: k8s_vm_flavor }
273 - port: { get_resource: k8s_4_private_port }
274 user_data_format: RAW
278 __docker_proxy__: { get_param: docker_proxy }
279 __apt_proxy__: { get_param: apt_proxy }
280 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
282 get_file: k8s_vm_entrypoint.sh
285 type: OS::Neutron::Port
287 network: { get_resource: oam_network }
288 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
290 - { get_resource: onap_sg }
293 type: OS::Neutron::FloatingIP
295 floating_network_id: { get_param: public_net_id }
296 port_id: { get_resource: k8s_5_private_port }
299 type: OS::Nova::Server
302 image: { get_param: ubuntu_1604_image }
303 flavor: { get_param: k8s_vm_flavor }
306 - port: { get_resource: k8s_5_private_port }
307 user_data_format: RAW
311 __docker_proxy__: { get_param: docker_proxy }
312 __apt_proxy__: { get_param: apt_proxy }
313 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
315 get_file: k8s_vm_entrypoint.sh
318 type: OS::Neutron::Port
320 network: { get_resource: oam_network }
321 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
323 - { get_resource: onap_sg }
326 type: OS::Neutron::FloatingIP
328 floating_network_id: { get_param: public_net_id }
329 port_id: { get_resource: k8s_6_private_port }
332 type: OS::Nova::Server
335 image: { get_param: ubuntu_1604_image }
336 flavor: { get_param: k8s_vm_flavor }
339 - port: { get_resource: k8s_6_private_port }
340 user_data_format: RAW
344 __docker_proxy__: { get_param: docker_proxy }
345 __apt_proxy__: { get_param: apt_proxy }
346 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
348 get_file: k8s_vm_entrypoint.sh
351 type: OS::Neutron::Port
353 network: { get_resource: oam_network }
354 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
356 - { get_resource: onap_sg }
359 type: OS::Neutron::FloatingIP
361 floating_network_id: { get_param: public_net_id }
362 port_id: { get_resource: k8s_7_private_port }
365 type: OS::Nova::Server
368 image: { get_param: ubuntu_1604_image }
369 flavor: { get_param: k8s_vm_flavor }
372 - port: { get_resource: k8s_7_private_port }
373 user_data_format: RAW
377 __docker_proxy__: { get_param: docker_proxy }
378 __apt_proxy__: { get_param: apt_proxy }
379 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
381 get_file: k8s_vm_entrypoint.sh
384 type: OS::Neutron::Port
386 network: { get_resource: oam_network }
387 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
389 - { get_resource: onap_sg }
392 type: OS::Neutron::FloatingIP
394 floating_network_id: { get_param: public_net_id }
395 port_id: { get_resource: k8s_8_private_port }
398 type: OS::Nova::Server
401 image: { get_param: ubuntu_1604_image }
402 flavor: { get_param: k8s_vm_flavor }
405 - port: { get_resource: k8s_8_private_port }
406 user_data_format: RAW
410 __docker_proxy__: { get_param: docker_proxy }
411 __apt_proxy__: { get_param: apt_proxy }
412 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
414 get_file: k8s_vm_entrypoint.sh
417 type: OS::Neutron::Port
419 network: { get_resource: oam_network }
420 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
422 - { get_resource: onap_sg }
425 type: OS::Neutron::FloatingIP
427 floating_network_id: { get_param: public_net_id }
428 port_id: { get_resource: k8s_9_private_port }
431 type: OS::Nova::Server
434 image: { get_param: ubuntu_1604_image }
435 flavor: { get_param: k8s_vm_flavor }
438 - port: { get_resource: k8s_9_private_port }
439 user_data_format: RAW
443 __docker_proxy__: { get_param: docker_proxy }
444 __apt_proxy__: { get_param: apt_proxy }
445 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
447 get_file: k8s_vm_entrypoint.sh
451 description: The IP address of the rancher instance
452 value: { get_attr: [rancher_floating_ip, floating_ip_address] }
455 description: The IP address of the k8s_1 instance
456 value: { get_attr: [k8s_1_floating_ip, floating_ip_address] }
459 description: The IP address of the k8s_2 instance
460 value: { get_attr: [k8s_2_floating_ip, floating_ip_address] }
463 description: The IP address of the k8s_3 instance
464 value: { get_attr: [k8s_3_floating_ip, floating_ip_address] }
467 description: The IP address of the k8s_4 instance
468 value: { get_attr: [k8s_4_floating_ip, floating_ip_address] }
471 description: The IP address of the k8s_5 instance
472 value: { get_attr: [k8s_5_floating_ip, floating_ip_address] }
475 description: The IP address of the k8s_6 instance
476 value: { get_attr: [k8s_6_floating_ip, floating_ip_address] }
479 description: The IP address of the k8s_7 instance
480 value: { get_attr: [k8s_7_floating_ip, floating_ip_address] }
483 description: The IP address of the k8s_8 instance
484 value: { get_attr: [k8s_8_floating_ip, floating_ip_address] }
487 description: The IP address of the k8s_9 instance
488 value: { get_attr: [k8s_9_floating_ip, floating_ip_address] }