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
38 integration_gerrit_branch:
42 integration_gerrit_refspec:
44 default: "refs/heads/master"
52 default: "refs/heads/master"
70 rancher_agent_version:
84 type: OS::Heat::RandomString
90 type: OS::Neutron::SecurityGroup
97 rand: { get_resource: random-str }
98 description: security group used by ONAP
110 port_range_max: 65535
113 port_range_max: 65535
116 # ONAP management private network
118 type: OS::Neutron::Net
122 template: oam_network_rand
124 rand: { get_resource: random-str }
127 type: OS::Neutron::Subnet
131 template: oam_network_rand
133 rand: { get_resource: random-str }
134 network_id: { get_resource: oam_network }
135 cidr: { get_param: oam_network_cidr }
136 dns_nameservers: [ "8.8.8.8" ]
139 type: OS::Neutron::Router
142 list_join: ['-', [{ get_param: 'OS::stack_name' }, 'router']]
143 external_gateway_info:
144 network: { get_param: public_net_id }
147 type: OS::Neutron::RouterInterface
149 router_id: { get_resource: router }
150 subnet_id: { get_resource: oam_subnet }
152 rancher_private_port:
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: rancher_private_port }
167 type: OS::Nova::Server
170 list_join: ['-', [{ get_param: 'OS::stack_name' }, 'rancher']]
171 image: { get_param: ubuntu_1604_image }
172 flavor: { get_param: rancher_vm_flavor }
173 key_name: { get_param: key_name }
175 - port: { get_resource: rancher_private_port }
176 user_data_format: RAW
180 get_file: rancher_vm_entrypoint.sh
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] }
185 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
186 __integration_override_yaml__: { get_param: integration_override_yaml }
187 __integration_gerrit_branch__: { get_param: integration_gerrit_branch }
188 __integration_gerrit_refspec__: { get_param: integration_gerrit_refspec }
189 __oom_gerrit_branch__: { get_param: oom_gerrit_branch }
190 __oom_gerrit_refspec__: { get_param: oom_gerrit_refspec }
191 __docker_manifest__: { get_param: docker_manifest }
192 __docker_version__: { get_param: docker_version }
193 __rancher_version__: { get_param: rancher_version }
194 __rancher_agent_version__: { get_param: rancher_agent_version }
195 __kubectl_version__: { get_param: kubectl_version }
196 __helm_version__: { get_param: helm_version }
197 __public_net_id__: { get_param: public_net_id }
198 __oam_network_cidr__: { get_param: oam_network_cidr }
199 __oam_network_id__: { get_resource: oam_network }
200 __oam_subnet_id__: { get_resource: oam_subnet }
201 __k8s_1_vm_ip__: { get_attr: [k8s_1_floating_ip, floating_ip_address] }
203 get_attr: [k8s_1_floating_ip, floating_ip_address],
204 get_attr: [k8s_2_floating_ip, floating_ip_address],
205 get_attr: [k8s_3_floating_ip, floating_ip_address],
206 get_attr: [k8s_4_floating_ip, floating_ip_address],
207 get_attr: [k8s_5_floating_ip, floating_ip_address],
208 get_attr: [k8s_6_floating_ip, floating_ip_address],
210 __k8s_private_ips__: [
211 get_attr: [k8s_1_floating_ip, fixed_ip_address],
212 get_attr: [k8s_2_floating_ip, fixed_ip_address],
213 get_attr: [k8s_3_floating_ip, fixed_ip_address],
214 get_attr: [k8s_4_floating_ip, fixed_ip_address],
215 get_attr: [k8s_5_floating_ip, fixed_ip_address],
216 get_attr: [k8s_6_floating_ip, fixed_ip_address],
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_1_private_port }
233 type: OS::Nova::Server
236 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s_1']]
237 image: { get_param: ubuntu_1604_image }
238 flavor: { get_param: k8s_vm_flavor }
239 key_name: { get_param: key_name }
241 - port: { get_resource: k8s_1_private_port }
242 user_data_format: RAW
246 __docker_proxy__: { get_param: docker_proxy }
247 __apt_proxy__: { get_param: apt_proxy }
248 __docker_version__: { get_param: docker_version }
249 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
250 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_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_2_private_port }
269 type: OS::Nova::Server
272 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s_2']]
273 image: { get_param: ubuntu_1604_image }
274 flavor: { get_param: k8s_vm_flavor }
275 key_name: { get_param: key_name }
277 - port: { get_resource: k8s_2_private_port }
278 user_data_format: RAW
282 __docker_proxy__: { get_param: docker_proxy }
283 __apt_proxy__: { get_param: apt_proxy }
284 __docker_version__: { get_param: docker_version }
285 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
286 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
288 get_file: k8s_vm_entrypoint.sh
291 type: OS::Neutron::Port
293 network: { get_resource: oam_network }
294 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
296 - { get_resource: onap_sg }
299 type: OS::Neutron::FloatingIP
301 floating_network_id: { get_param: public_net_id }
302 port_id: { get_resource: k8s_3_private_port }
305 type: OS::Nova::Server
308 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s_3']]
309 image: { get_param: ubuntu_1604_image }
310 flavor: { get_param: k8s_vm_flavor }
311 key_name: { get_param: key_name }
313 - port: { get_resource: k8s_3_private_port }
314 user_data_format: RAW
318 __docker_proxy__: { get_param: docker_proxy }
319 __apt_proxy__: { get_param: apt_proxy }
320 __docker_version__: { get_param: docker_version }
321 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
322 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
324 get_file: k8s_vm_entrypoint.sh
327 type: OS::Neutron::Port
329 network: { get_resource: oam_network }
330 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
332 - { get_resource: onap_sg }
335 type: OS::Neutron::FloatingIP
337 floating_network_id: { get_param: public_net_id }
338 port_id: { get_resource: k8s_4_private_port }
341 type: OS::Nova::Server
344 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s_4']]
345 image: { get_param: ubuntu_1604_image }
346 flavor: { get_param: k8s_vm_flavor }
347 key_name: { get_param: key_name }
349 - port: { get_resource: k8s_4_private_port }
350 user_data_format: RAW
354 __docker_proxy__: { get_param: docker_proxy }
355 __apt_proxy__: { get_param: apt_proxy }
356 __docker_version__: { get_param: docker_version }
357 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
358 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
360 get_file: k8s_vm_entrypoint.sh
363 type: OS::Neutron::Port
365 network: { get_resource: oam_network }
366 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
368 - { get_resource: onap_sg }
371 type: OS::Neutron::FloatingIP
373 floating_network_id: { get_param: public_net_id }
374 port_id: { get_resource: k8s_5_private_port }
377 type: OS::Nova::Server
380 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s_5']]
381 image: { get_param: ubuntu_1604_image }
382 flavor: { get_param: k8s_vm_flavor }
383 key_name: { get_param: key_name }
385 - port: { get_resource: k8s_5_private_port }
386 user_data_format: RAW
390 __docker_proxy__: { get_param: docker_proxy }
391 __apt_proxy__: { get_param: apt_proxy }
392 __docker_version__: { get_param: docker_version }
393 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
394 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
396 get_file: k8s_vm_entrypoint.sh
399 type: OS::Neutron::Port
401 network: { get_resource: oam_network }
402 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
404 - { get_resource: onap_sg }
407 type: OS::Neutron::FloatingIP
409 floating_network_id: { get_param: public_net_id }
410 port_id: { get_resource: k8s_6_private_port }
413 type: OS::Nova::Server
416 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s_6']]
417 image: { get_param: ubuntu_1604_image }
418 flavor: { get_param: k8s_vm_flavor }
419 key_name: { get_param: key_name }
421 - port: { get_resource: k8s_6_private_port }
422 user_data_format: RAW
426 __docker_proxy__: { get_param: docker_proxy }
427 __apt_proxy__: { get_param: apt_proxy }
428 __docker_version__: { get_param: docker_version }
429 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
430 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
432 get_file: k8s_vm_entrypoint.sh
436 description: The IP address of the rancher instance
437 value: { get_attr: [rancher_floating_ip, floating_ip_address] }
440 description: The IP address of the k8s_1 instance
441 value: { get_attr: [k8s_1_floating_ip, floating_ip_address] }
444 description: The IP address of the k8s_2 instance
445 value: { get_attr: [k8s_2_floating_ip, floating_ip_address] }
448 description: The IP address of the k8s_3 instance
449 value: { get_attr: [k8s_3_floating_ip, floating_ip_address] }
452 description: The IP address of the k8s_4 instance
453 value: { get_attr: [k8s_4_floating_ip, floating_ip_address] }
456 description: The IP address of the k8s_5 instance
457 value: { get_attr: [k8s_5_floating_ip, floating_ip_address] }
460 description: The IP address of the k8s_6 instance
461 value: { get_attr: [k8s_6_floating_ip, floating_ip_address] }