blob: 075ed66d20af3c30a37d56f6685dc76cbe522ab1 [file] [log] [blame]
Gary Wu950a3232019-03-26 13:08:29 -07001#
2# Generated by scripts/gen-onap-oom-yaml.sh; MANUAL CHANGES WILL BE LOST
3#
4heat_template_version: 2015-10-15
5description: ONAP on RKE Kubernetes using OOM
6
7parameters:
8 docker_proxy:
9 type: string
10
11 apt_proxy:
12 type: string
13
14 public_net_id:
15 type: string
16 description: The ID of the Public network for floating IP address allocation
17
18 oam_network_cidr:
19 type: string
20 description: CIDR of the OAM ONAP network
21
Gary Wucad70692019-04-24 10:45:56 -070022 oam_ext_network_cidr:
23 type: string
24 description: CIDR of the onap_oam_ext network
25
Gary Wu950a3232019-03-26 13:08:29 -070026 ubuntu_1804_image:
27 type: string
28 description: Name of the Ubuntu 18.04 image
29
Gary Wud95bf2b2019-06-21 15:35:18 -070030 nfs_vm_flavor:
Gary Wu950a3232019-03-26 13:08:29 -070031 type: string
Gary Wud95bf2b2019-06-21 15:35:18 -070032 description: VM flavor for Nfs
Gary Wu950a3232019-03-26 13:08:29 -070033
34 k8s_vm_flavor:
35 type: string
36 description: VM flavor for k8s hosts
37
Gary Wu950a3232019-03-26 13:08:29 -070038 orch_vm_flavor:
39 type: string
40 description: VM flavor for orch hosts
41
42 integration_override_yaml:
43 type: string
44 description: Content for integration_override.yaml
45
46 integration_gerrit_branch:
47 type: string
48 default: "master"
49
50 integration_gerrit_refspec:
51 type: string
52 default: ""
53
54 oom_gerrit_branch:
55 type: string
56 default: "master"
57
58 oom_gerrit_refspec:
59 type: string
60 default: ""
61
62 docker_manifest:
63 type: string
64 default: ""
65
66 key_name:
67 type: string
68 default: "onap_key"
69
70 docker_version:
71 type: string
Gary Wu7ff8c6f2019-04-24 07:50:11 -070072 default: "18.09.5"
Gary Wu950a3232019-03-26 13:08:29 -070073
Gary Wu950a3232019-03-26 13:08:29 -070074 kubectl_version:
75 type: string
Gary Wuc76dadc2019-04-24 09:22:14 -070076 default: "1.13.5"
Gary Wu950a3232019-03-26 13:08:29 -070077
78 helm_version:
79 type: string
Gary Wuceff3472019-04-24 10:33:38 -070080 default: "2.12.3"
Gary Wu950a3232019-03-26 13:08:29 -070081
82 helm_deploy_delay:
83 type: string
84 default: "3m"
85
Gary Wu950a3232019-03-26 13:08:29 -070086 mtu:
87 type: number
88 default: 1500
89
90 portal_hostname:
91 type: string
92 description: The FQDN of the k8s host that will be used for the Portal UI component URLs; this needs to be resolveable at the client
93 default: "portal.api.simpledemo.onap.org"
94
95resources:
96 random-str:
97 type: OS::Heat::RandomString
98 properties:
99 length: 4
100
101 # ONAP security group
102 onap_sg:
103 type: OS::Neutron::SecurityGroup
104 properties:
105 name:
106 str_replace:
107 template: base_rand
108 params:
109 base: onap_sg
110 rand: { get_resource: random-str }
111 description: security group used by ONAP
112 rules:
113 # All egress traffic
114 - direction: egress
115 ethertype: IPv4
116 - direction: egress
117 ethertype: IPv6
118 # ingress traffic
119 # ICMP
120 - protocol: icmp
121 - protocol: udp
122 port_range_min: 1
123 port_range_max: 65535
124 - protocol: tcp
125 port_range_min: 1
126 port_range_max: 65535
127 # Protocols used for vLB/vDNS use case
128 - protocol: 47
129 - protocol: 53
130 - protocol: 132
131
Gary Wucad70692019-04-24 10:45:56 -0700132 router:
133 type: OS::Neutron::Router
134 properties:
135 name:
136 list_join: ['-', [{ get_param: 'OS::stack_name' }, 'router']]
137 external_gateway_info:
138 network: { get_param: public_net_id }
Gary Wu950a3232019-03-26 13:08:29 -0700139
140 # ONAP management private network
141 oam_network:
142 type: OS::Neutron::Net
143 properties:
144 name:
145 str_replace:
146 template: oam_network_rand
147 params:
148 rand: { get_resource: random-str }
149
150 oam_subnet:
151 type: OS::Neutron::Subnet
152 properties:
153 name:
154 str_replace:
155 template: oam_network_rand
156 params:
157 rand: { get_resource: random-str }
158 network_id: { get_resource: oam_network }
159 cidr: { get_param: oam_network_cidr }
160 dns_nameservers: [ "8.8.8.8" ]
161
Gary Wucad70692019-04-24 10:45:56 -0700162 oam_router_interface:
Gary Wu950a3232019-03-26 13:08:29 -0700163 type: OS::Neutron::RouterInterface
164 properties:
165 router_id: { get_resource: router }
166 subnet_id: { get_resource: oam_subnet }
167
Gary Wucad70692019-04-24 10:45:56 -0700168 oam_ext_network:
169 type: OS::Neutron::Net
170 properties:
171 name: onap_oam_ext
172
173 oam_ext_subnet:
174 type: OS::Neutron::Subnet
175 properties:
176 name: onap_oam_ext
177 network_id: { get_resource: oam_ext_network }
178 cidr: { get_param: oam_ext_network_cidr }
Gary Wu7dbaaa62019-04-26 10:16:19 -0700179 enable_dhcp: false
Gary Wucad70692019-04-24 10:45:56 -0700180 dns_nameservers: [ "8.8.8.8" ]
181
182 oam_ext_router_interface:
183 type: OS::Neutron::RouterInterface
184 properties:
185 router_id: { get_resource: router }
186 subnet_id: { get_resource: oam_ext_subnet }
187
Gary Wud95bf2b2019-06-21 15:35:18 -0700188 nfs_private_port:
Gary Wu950a3232019-03-26 13:08:29 -0700189 type: OS::Neutron::Port
190 properties:
191 network: { get_resource: oam_network }
192 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
193 security_groups:
194 - { get_resource: onap_sg }
195
Gary Wud95bf2b2019-06-21 15:35:18 -0700196 nfs_floating_ip:
Gary Wu950a3232019-03-26 13:08:29 -0700197 type: OS::Neutron::FloatingIP
198 properties:
199 floating_network_id: { get_param: public_net_id }
Gary Wud95bf2b2019-06-21 15:35:18 -0700200 port_id: { get_resource: nfs_private_port }
201 nfs_vm:
Gary Wu950a3232019-03-26 13:08:29 -0700202 type: OS::Nova::Server
203 properties:
204 name:
Gary Wud95bf2b2019-06-21 15:35:18 -0700205 list_join: ['-', [{ get_param: 'OS::stack_name' }, 'nfs']]
Gary Wu950a3232019-03-26 13:08:29 -0700206 image: { get_param: ubuntu_1804_image }
Gary Wud95bf2b2019-06-21 15:35:18 -0700207 flavor: { get_param: nfs_vm_flavor }
Gary Wu950a3232019-03-26 13:08:29 -0700208 key_name: { get_param: key_name }
209 networks:
Gary Wud95bf2b2019-06-21 15:35:18 -0700210 - port: { get_resource: nfs_private_port }
Gary Wu950a3232019-03-26 13:08:29 -0700211 user_data_format: RAW
212 user_data:
213 str_replace:
214 template:
Gary Wud95bf2b2019-06-21 15:35:18 -0700215 get_file: nfs_vm_entrypoint.sh
Gary Wu950a3232019-03-26 13:08:29 -0700216 params:
217 __docker_proxy__: { get_param: docker_proxy }
218 __apt_proxy__: { get_param: apt_proxy }
Gary Wud95bf2b2019-06-21 15:35:18 -0700219 __nfs_ip_addr__: { get_attr: [nfs_floating_ip, floating_ip_address] }
220 __nfs_private_ip_addr__: { get_attr: [nfs_floating_ip, fixed_ip_address] }
Gary Wu950a3232019-03-26 13:08:29 -0700221 __integration_override_yaml__: { get_param: integration_override_yaml }
222 __integration_gerrit_branch__: { get_param: integration_gerrit_branch }
223 __integration_gerrit_refspec__: { get_param: integration_gerrit_refspec }
224 __oom_gerrit_branch__: { get_param: oom_gerrit_branch }
225 __oom_gerrit_refspec__: { get_param: oom_gerrit_refspec }
226 __docker_manifest__: { get_param: docker_manifest }
227 __docker_version__: { get_param: docker_version }
Gary Wu950a3232019-03-26 13:08:29 -0700228 __kubectl_version__: { get_param: kubectl_version }
229 __helm_version__: { get_param: helm_version }
230 __helm_deploy_delay__: { get_param: helm_deploy_delay }
Gary Wu950a3232019-03-26 13:08:29 -0700231 __mtu__: { get_param: mtu }
232 __portal_hostname__: { get_param: portal_hostname }
233 __public_net_id__: { get_param: public_net_id }
234 __oam_network_cidr__: { get_param: oam_network_cidr }
235 __oam_network_id__: { get_resource: oam_network }
236 __oam_subnet_id__: { get_resource: oam_subnet }
237 __sec_group__: { get_resource: onap_sg }
238 __k8s_01_vm_ip__: { get_attr: [k8s_01_floating_ip, floating_ip_address] }
239 __k8s_vm_ips__: [
240 get_attr: [k8s_01_floating_ip, floating_ip_address],
241 get_attr: [k8s_02_floating_ip, floating_ip_address],
242 get_attr: [k8s_03_floating_ip, floating_ip_address],
243 get_attr: [k8s_04_floating_ip, floating_ip_address],
244 get_attr: [k8s_05_floating_ip, floating_ip_address],
245 get_attr: [k8s_06_floating_ip, floating_ip_address],
Gary Wu415f6a82019-04-11 15:56:27 -0700246 get_attr: [k8s_07_floating_ip, floating_ip_address],
247 get_attr: [k8s_08_floating_ip, floating_ip_address],
248 get_attr: [k8s_09_floating_ip, floating_ip_address],
249 get_attr: [k8s_10_floating_ip, floating_ip_address],
250 get_attr: [k8s_11_floating_ip, floating_ip_address],
251 get_attr: [k8s_12_floating_ip, floating_ip_address],
Gary Wu950a3232019-03-26 13:08:29 -0700252 ]
253 __k8s_private_ips__: [
254 get_attr: [k8s_01_floating_ip, fixed_ip_address],
255 get_attr: [k8s_02_floating_ip, fixed_ip_address],
256 get_attr: [k8s_03_floating_ip, fixed_ip_address],
257 get_attr: [k8s_04_floating_ip, fixed_ip_address],
258 get_attr: [k8s_05_floating_ip, fixed_ip_address],
259 get_attr: [k8s_06_floating_ip, fixed_ip_address],
Gary Wu415f6a82019-04-11 15:56:27 -0700260 get_attr: [k8s_07_floating_ip, fixed_ip_address],
261 get_attr: [k8s_08_floating_ip, fixed_ip_address],
262 get_attr: [k8s_09_floating_ip, fixed_ip_address],
263 get_attr: [k8s_10_floating_ip, fixed_ip_address],
264 get_attr: [k8s_11_floating_ip, fixed_ip_address],
265 get_attr: [k8s_12_floating_ip, fixed_ip_address],
Gary Wu950a3232019-03-26 13:08:29 -0700266 ]
267 k8s_01_private_port:
268 type: OS::Neutron::Port
269 properties:
270 network: { get_resource: oam_network }
271 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
272 security_groups:
273 - { get_resource: onap_sg }
274
275 k8s_01_floating_ip:
276 type: OS::Neutron::FloatingIP
277 properties:
278 floating_network_id: { get_param: public_net_id }
279 port_id: { get_resource: k8s_01_private_port }
280
281 k8s_01_vm_scripts:
282 type: OS::Heat::CloudConfig
283 properties:
284 cloud_config:
285 power_state:
286 mode: reboot
287 runcmd:
288 - [ /opt/k8s_vm_install.sh ]
289 write_files:
290 - path: /opt/k8s_vm_install.sh
291 permissions: '0755'
292 content:
293 str_replace:
294 params:
295 __docker_proxy__: { get_param: docker_proxy }
296 __apt_proxy__: { get_param: apt_proxy }
297 __docker_version__: { get_param: docker_version }
Gary Wud95bf2b2019-06-21 15:35:18 -0700298 __nfs_ip_addr__: { get_attr: [nfs_floating_ip, floating_ip_address] }
299 __nfs_private_ip_addr__: { get_attr: [nfs_floating_ip, fixed_ip_address] }
Gary Wu950a3232019-03-26 13:08:29 -0700300 __host_private_ip_addr__: { get_attr: [k8s_01_floating_ip, fixed_ip_address] }
301 __mtu__: { get_param: mtu }
302 template:
303 get_file: k8s_vm_install.sh
304 - path: /opt/k8s_vm_init.sh
305 permissions: '0755'
306 content:
307 str_replace:
308 params:
309 __host_private_ip_addr__: { get_attr: [k8s_01_floating_ip, fixed_ip_address] }
310 __host_label__: 'compute'
311 template:
312 get_file: k8s_vm_init.sh
313 - path: /etc/init.d/k8s_vm_init_serv
314 permissions: '0755'
315 content:
316 get_file: k8s_vm_init_serv.sh
317
318 k8s_01_vm_config:
319 type: OS::Heat::MultipartMime
320 properties:
321 parts:
322 - config: { get_resource: k8s_01_vm_scripts }
323
324 k8s_01_vm:
325 type: OS::Nova::Server
326 properties:
327 name:
328 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '01' ] ]
329 image: { get_param: ubuntu_1804_image }
330 flavor: { get_param: k8s_vm_flavor }
331 key_name: { get_param: key_name }
332 networks:
333 - port: { get_resource: k8s_01_private_port }
334 user_data_format: SOFTWARE_CONFIG
335 user_data: { get_resource: k8s_01_vm_config }
Gary Wu950a3232019-03-26 13:08:29 -0700336 k8s_02_private_port:
337 type: OS::Neutron::Port
338 properties:
339 network: { get_resource: oam_network }
340 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
341 security_groups:
342 - { get_resource: onap_sg }
343
344 k8s_02_floating_ip:
345 type: OS::Neutron::FloatingIP
346 properties:
347 floating_network_id: { get_param: public_net_id }
348 port_id: { get_resource: k8s_02_private_port }
349
350 k8s_02_vm_scripts:
351 type: OS::Heat::CloudConfig
352 properties:
353 cloud_config:
354 power_state:
355 mode: reboot
356 runcmd:
357 - [ /opt/k8s_vm_install.sh ]
358 write_files:
359 - path: /opt/k8s_vm_install.sh
360 permissions: '0755'
361 content:
362 str_replace:
363 params:
364 __docker_proxy__: { get_param: docker_proxy }
365 __apt_proxy__: { get_param: apt_proxy }
366 __docker_version__: { get_param: docker_version }
Gary Wud95bf2b2019-06-21 15:35:18 -0700367 __nfs_ip_addr__: { get_attr: [nfs_floating_ip, floating_ip_address] }
368 __nfs_private_ip_addr__: { get_attr: [nfs_floating_ip, fixed_ip_address] }
Gary Wu950a3232019-03-26 13:08:29 -0700369 __host_private_ip_addr__: { get_attr: [k8s_02_floating_ip, fixed_ip_address] }
370 __mtu__: { get_param: mtu }
371 template:
372 get_file: k8s_vm_install.sh
373 - path: /opt/k8s_vm_init.sh
374 permissions: '0755'
375 content:
376 str_replace:
377 params:
378 __host_private_ip_addr__: { get_attr: [k8s_02_floating_ip, fixed_ip_address] }
379 __host_label__: 'compute'
380 template:
381 get_file: k8s_vm_init.sh
382 - path: /etc/init.d/k8s_vm_init_serv
383 permissions: '0755'
384 content:
385 get_file: k8s_vm_init_serv.sh
386
387 k8s_02_vm_config:
388 type: OS::Heat::MultipartMime
389 properties:
390 parts:
391 - config: { get_resource: k8s_02_vm_scripts }
392
393 k8s_02_vm:
394 type: OS::Nova::Server
395 properties:
396 name:
397 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '02' ] ]
398 image: { get_param: ubuntu_1804_image }
399 flavor: { get_param: k8s_vm_flavor }
400 key_name: { get_param: key_name }
401 networks:
402 - port: { get_resource: k8s_02_private_port }
403 user_data_format: SOFTWARE_CONFIG
404 user_data: { get_resource: k8s_02_vm_config }
Gary Wu950a3232019-03-26 13:08:29 -0700405 k8s_03_private_port:
406 type: OS::Neutron::Port
407 properties:
408 network: { get_resource: oam_network }
409 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
410 security_groups:
411 - { get_resource: onap_sg }
412
413 k8s_03_floating_ip:
414 type: OS::Neutron::FloatingIP
415 properties:
416 floating_network_id: { get_param: public_net_id }
417 port_id: { get_resource: k8s_03_private_port }
418
419 k8s_03_vm_scripts:
420 type: OS::Heat::CloudConfig
421 properties:
422 cloud_config:
423 power_state:
424 mode: reboot
425 runcmd:
426 - [ /opt/k8s_vm_install.sh ]
427 write_files:
428 - path: /opt/k8s_vm_install.sh
429 permissions: '0755'
430 content:
431 str_replace:
432 params:
433 __docker_proxy__: { get_param: docker_proxy }
434 __apt_proxy__: { get_param: apt_proxy }
435 __docker_version__: { get_param: docker_version }
Gary Wud95bf2b2019-06-21 15:35:18 -0700436 __nfs_ip_addr__: { get_attr: [nfs_floating_ip, floating_ip_address] }
437 __nfs_private_ip_addr__: { get_attr: [nfs_floating_ip, fixed_ip_address] }
Gary Wu950a3232019-03-26 13:08:29 -0700438 __host_private_ip_addr__: { get_attr: [k8s_03_floating_ip, fixed_ip_address] }
439 __mtu__: { get_param: mtu }
440 template:
441 get_file: k8s_vm_install.sh
442 - path: /opt/k8s_vm_init.sh
443 permissions: '0755'
444 content:
445 str_replace:
446 params:
447 __host_private_ip_addr__: { get_attr: [k8s_03_floating_ip, fixed_ip_address] }
448 __host_label__: 'compute'
449 template:
450 get_file: k8s_vm_init.sh
451 - path: /etc/init.d/k8s_vm_init_serv
452 permissions: '0755'
453 content:
454 get_file: k8s_vm_init_serv.sh
455
456 k8s_03_vm_config:
457 type: OS::Heat::MultipartMime
458 properties:
459 parts:
460 - config: { get_resource: k8s_03_vm_scripts }
461
462 k8s_03_vm:
463 type: OS::Nova::Server
464 properties:
465 name:
466 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '03' ] ]
467 image: { get_param: ubuntu_1804_image }
468 flavor: { get_param: k8s_vm_flavor }
469 key_name: { get_param: key_name }
470 networks:
471 - port: { get_resource: k8s_03_private_port }
472 user_data_format: SOFTWARE_CONFIG
473 user_data: { get_resource: k8s_03_vm_config }
Gary Wu950a3232019-03-26 13:08:29 -0700474 k8s_04_private_port:
475 type: OS::Neutron::Port
476 properties:
477 network: { get_resource: oam_network }
478 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
479 security_groups:
480 - { get_resource: onap_sg }
481
482 k8s_04_floating_ip:
483 type: OS::Neutron::FloatingIP
484 properties:
485 floating_network_id: { get_param: public_net_id }
486 port_id: { get_resource: k8s_04_private_port }
487
488 k8s_04_vm_scripts:
489 type: OS::Heat::CloudConfig
490 properties:
491 cloud_config:
492 power_state:
493 mode: reboot
494 runcmd:
495 - [ /opt/k8s_vm_install.sh ]
496 write_files:
497 - path: /opt/k8s_vm_install.sh
498 permissions: '0755'
499 content:
500 str_replace:
501 params:
502 __docker_proxy__: { get_param: docker_proxy }
503 __apt_proxy__: { get_param: apt_proxy }
504 __docker_version__: { get_param: docker_version }
Gary Wud95bf2b2019-06-21 15:35:18 -0700505 __nfs_ip_addr__: { get_attr: [nfs_floating_ip, floating_ip_address] }
506 __nfs_private_ip_addr__: { get_attr: [nfs_floating_ip, fixed_ip_address] }
Gary Wu950a3232019-03-26 13:08:29 -0700507 __host_private_ip_addr__: { get_attr: [k8s_04_floating_ip, fixed_ip_address] }
508 __mtu__: { get_param: mtu }
509 template:
510 get_file: k8s_vm_install.sh
511 - path: /opt/k8s_vm_init.sh
512 permissions: '0755'
513 content:
514 str_replace:
515 params:
516 __host_private_ip_addr__: { get_attr: [k8s_04_floating_ip, fixed_ip_address] }
517 __host_label__: 'compute'
518 template:
519 get_file: k8s_vm_init.sh
520 - path: /etc/init.d/k8s_vm_init_serv
521 permissions: '0755'
522 content:
523 get_file: k8s_vm_init_serv.sh
524
525 k8s_04_vm_config:
526 type: OS::Heat::MultipartMime
527 properties:
528 parts:
529 - config: { get_resource: k8s_04_vm_scripts }
530
531 k8s_04_vm:
532 type: OS::Nova::Server
533 properties:
534 name:
535 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '04' ] ]
536 image: { get_param: ubuntu_1804_image }
537 flavor: { get_param: k8s_vm_flavor }
538 key_name: { get_param: key_name }
539 networks:
540 - port: { get_resource: k8s_04_private_port }
541 user_data_format: SOFTWARE_CONFIG
542 user_data: { get_resource: k8s_04_vm_config }
Gary Wu950a3232019-03-26 13:08:29 -0700543 k8s_05_private_port:
544 type: OS::Neutron::Port
545 properties:
546 network: { get_resource: oam_network }
547 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
548 security_groups:
549 - { get_resource: onap_sg }
550
551 k8s_05_floating_ip:
552 type: OS::Neutron::FloatingIP
553 properties:
554 floating_network_id: { get_param: public_net_id }
555 port_id: { get_resource: k8s_05_private_port }
556
557 k8s_05_vm_scripts:
558 type: OS::Heat::CloudConfig
559 properties:
560 cloud_config:
561 power_state:
562 mode: reboot
563 runcmd:
564 - [ /opt/k8s_vm_install.sh ]
565 write_files:
566 - path: /opt/k8s_vm_install.sh
567 permissions: '0755'
568 content:
569 str_replace:
570 params:
571 __docker_proxy__: { get_param: docker_proxy }
572 __apt_proxy__: { get_param: apt_proxy }
573 __docker_version__: { get_param: docker_version }
Gary Wud95bf2b2019-06-21 15:35:18 -0700574 __nfs_ip_addr__: { get_attr: [nfs_floating_ip, floating_ip_address] }
575 __nfs_private_ip_addr__: { get_attr: [nfs_floating_ip, fixed_ip_address] }
Gary Wu950a3232019-03-26 13:08:29 -0700576 __host_private_ip_addr__: { get_attr: [k8s_05_floating_ip, fixed_ip_address] }
577 __mtu__: { get_param: mtu }
578 template:
579 get_file: k8s_vm_install.sh
580 - path: /opt/k8s_vm_init.sh
581 permissions: '0755'
582 content:
583 str_replace:
584 params:
585 __host_private_ip_addr__: { get_attr: [k8s_05_floating_ip, fixed_ip_address] }
586 __host_label__: 'compute'
587 template:
588 get_file: k8s_vm_init.sh
589 - path: /etc/init.d/k8s_vm_init_serv
590 permissions: '0755'
591 content:
592 get_file: k8s_vm_init_serv.sh
593
594 k8s_05_vm_config:
595 type: OS::Heat::MultipartMime
596 properties:
597 parts:
598 - config: { get_resource: k8s_05_vm_scripts }
599
600 k8s_05_vm:
601 type: OS::Nova::Server
602 properties:
603 name:
604 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '05' ] ]
605 image: { get_param: ubuntu_1804_image }
606 flavor: { get_param: k8s_vm_flavor }
607 key_name: { get_param: key_name }
608 networks:
609 - port: { get_resource: k8s_05_private_port }
610 user_data_format: SOFTWARE_CONFIG
611 user_data: { get_resource: k8s_05_vm_config }
Gary Wu950a3232019-03-26 13:08:29 -0700612 k8s_06_private_port:
613 type: OS::Neutron::Port
614 properties:
615 network: { get_resource: oam_network }
616 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
617 security_groups:
618 - { get_resource: onap_sg }
619
620 k8s_06_floating_ip:
621 type: OS::Neutron::FloatingIP
622 properties:
623 floating_network_id: { get_param: public_net_id }
624 port_id: { get_resource: k8s_06_private_port }
625
626 k8s_06_vm_scripts:
627 type: OS::Heat::CloudConfig
628 properties:
629 cloud_config:
630 power_state:
631 mode: reboot
632 runcmd:
633 - [ /opt/k8s_vm_install.sh ]
634 write_files:
635 - path: /opt/k8s_vm_install.sh
636 permissions: '0755'
637 content:
638 str_replace:
639 params:
640 __docker_proxy__: { get_param: docker_proxy }
641 __apt_proxy__: { get_param: apt_proxy }
642 __docker_version__: { get_param: docker_version }
Gary Wud95bf2b2019-06-21 15:35:18 -0700643 __nfs_ip_addr__: { get_attr: [nfs_floating_ip, floating_ip_address] }
644 __nfs_private_ip_addr__: { get_attr: [nfs_floating_ip, fixed_ip_address] }
Gary Wu950a3232019-03-26 13:08:29 -0700645 __host_private_ip_addr__: { get_attr: [k8s_06_floating_ip, fixed_ip_address] }
646 __mtu__: { get_param: mtu }
647 template:
648 get_file: k8s_vm_install.sh
649 - path: /opt/k8s_vm_init.sh
650 permissions: '0755'
651 content:
652 str_replace:
653 params:
654 __host_private_ip_addr__: { get_attr: [k8s_06_floating_ip, fixed_ip_address] }
655 __host_label__: 'compute'
656 template:
657 get_file: k8s_vm_init.sh
658 - path: /etc/init.d/k8s_vm_init_serv
659 permissions: '0755'
660 content:
661 get_file: k8s_vm_init_serv.sh
662
663 k8s_06_vm_config:
664 type: OS::Heat::MultipartMime
665 properties:
666 parts:
667 - config: { get_resource: k8s_06_vm_scripts }
668
669 k8s_06_vm:
670 type: OS::Nova::Server
671 properties:
672 name:
673 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '06' ] ]
674 image: { get_param: ubuntu_1804_image }
675 flavor: { get_param: k8s_vm_flavor }
676 key_name: { get_param: key_name }
677 networks:
678 - port: { get_resource: k8s_06_private_port }
679 user_data_format: SOFTWARE_CONFIG
680 user_data: { get_resource: k8s_06_vm_config }
Gary Wu415f6a82019-04-11 15:56:27 -0700681 k8s_07_private_port:
682 type: OS::Neutron::Port
683 properties:
684 network: { get_resource: oam_network }
685 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
686 security_groups:
687 - { get_resource: onap_sg }
688
689 k8s_07_floating_ip:
690 type: OS::Neutron::FloatingIP
691 properties:
692 floating_network_id: { get_param: public_net_id }
693 port_id: { get_resource: k8s_07_private_port }
694
695 k8s_07_vm_scripts:
696 type: OS::Heat::CloudConfig
697 properties:
698 cloud_config:
699 power_state:
700 mode: reboot
701 runcmd:
702 - [ /opt/k8s_vm_install.sh ]
703 write_files:
704 - path: /opt/k8s_vm_install.sh
705 permissions: '0755'
706 content:
707 str_replace:
708 params:
709 __docker_proxy__: { get_param: docker_proxy }
710 __apt_proxy__: { get_param: apt_proxy }
711 __docker_version__: { get_param: docker_version }
Gary Wud95bf2b2019-06-21 15:35:18 -0700712 __nfs_ip_addr__: { get_attr: [nfs_floating_ip, floating_ip_address] }
713 __nfs_private_ip_addr__: { get_attr: [nfs_floating_ip, fixed_ip_address] }
Gary Wu415f6a82019-04-11 15:56:27 -0700714 __host_private_ip_addr__: { get_attr: [k8s_07_floating_ip, fixed_ip_address] }
715 __mtu__: { get_param: mtu }
716 template:
717 get_file: k8s_vm_install.sh
718 - path: /opt/k8s_vm_init.sh
719 permissions: '0755'
720 content:
721 str_replace:
722 params:
723 __host_private_ip_addr__: { get_attr: [k8s_07_floating_ip, fixed_ip_address] }
724 __host_label__: 'compute'
725 template:
726 get_file: k8s_vm_init.sh
727 - path: /etc/init.d/k8s_vm_init_serv
728 permissions: '0755'
729 content:
730 get_file: k8s_vm_init_serv.sh
731
732 k8s_07_vm_config:
733 type: OS::Heat::MultipartMime
734 properties:
735 parts:
736 - config: { get_resource: k8s_07_vm_scripts }
737
738 k8s_07_vm:
739 type: OS::Nova::Server
740 properties:
741 name:
742 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '07' ] ]
743 image: { get_param: ubuntu_1804_image }
744 flavor: { get_param: k8s_vm_flavor }
745 key_name: { get_param: key_name }
746 networks:
747 - port: { get_resource: k8s_07_private_port }
748 user_data_format: SOFTWARE_CONFIG
749 user_data: { get_resource: k8s_07_vm_config }
Gary Wu415f6a82019-04-11 15:56:27 -0700750 k8s_08_private_port:
751 type: OS::Neutron::Port
752 properties:
753 network: { get_resource: oam_network }
754 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
755 security_groups:
756 - { get_resource: onap_sg }
757
758 k8s_08_floating_ip:
759 type: OS::Neutron::FloatingIP
760 properties:
761 floating_network_id: { get_param: public_net_id }
762 port_id: { get_resource: k8s_08_private_port }
763
764 k8s_08_vm_scripts:
765 type: OS::Heat::CloudConfig
766 properties:
767 cloud_config:
768 power_state:
769 mode: reboot
770 runcmd:
771 - [ /opt/k8s_vm_install.sh ]
772 write_files:
773 - path: /opt/k8s_vm_install.sh
774 permissions: '0755'
775 content:
776 str_replace:
777 params:
778 __docker_proxy__: { get_param: docker_proxy }
779 __apt_proxy__: { get_param: apt_proxy }
780 __docker_version__: { get_param: docker_version }
Gary Wud95bf2b2019-06-21 15:35:18 -0700781 __nfs_ip_addr__: { get_attr: [nfs_floating_ip, floating_ip_address] }
782 __nfs_private_ip_addr__: { get_attr: [nfs_floating_ip, fixed_ip_address] }
Gary Wu415f6a82019-04-11 15:56:27 -0700783 __host_private_ip_addr__: { get_attr: [k8s_08_floating_ip, fixed_ip_address] }
784 __mtu__: { get_param: mtu }
785 template:
786 get_file: k8s_vm_install.sh
787 - path: /opt/k8s_vm_init.sh
788 permissions: '0755'
789 content:
790 str_replace:
791 params:
792 __host_private_ip_addr__: { get_attr: [k8s_08_floating_ip, fixed_ip_address] }
793 __host_label__: 'compute'
794 template:
795 get_file: k8s_vm_init.sh
796 - path: /etc/init.d/k8s_vm_init_serv
797 permissions: '0755'
798 content:
799 get_file: k8s_vm_init_serv.sh
800
801 k8s_08_vm_config:
802 type: OS::Heat::MultipartMime
803 properties:
804 parts:
805 - config: { get_resource: k8s_08_vm_scripts }
806
807 k8s_08_vm:
808 type: OS::Nova::Server
809 properties:
810 name:
811 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '08' ] ]
812 image: { get_param: ubuntu_1804_image }
813 flavor: { get_param: k8s_vm_flavor }
814 key_name: { get_param: key_name }
815 networks:
816 - port: { get_resource: k8s_08_private_port }
817 user_data_format: SOFTWARE_CONFIG
818 user_data: { get_resource: k8s_08_vm_config }
Gary Wu415f6a82019-04-11 15:56:27 -0700819 k8s_09_private_port:
820 type: OS::Neutron::Port
821 properties:
822 network: { get_resource: oam_network }
823 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
824 security_groups:
825 - { get_resource: onap_sg }
826
827 k8s_09_floating_ip:
828 type: OS::Neutron::FloatingIP
829 properties:
830 floating_network_id: { get_param: public_net_id }
831 port_id: { get_resource: k8s_09_private_port }
832
833 k8s_09_vm_scripts:
834 type: OS::Heat::CloudConfig
835 properties:
836 cloud_config:
837 power_state:
838 mode: reboot
839 runcmd:
840 - [ /opt/k8s_vm_install.sh ]
841 write_files:
842 - path: /opt/k8s_vm_install.sh
843 permissions: '0755'
844 content:
845 str_replace:
846 params:
847 __docker_proxy__: { get_param: docker_proxy }
848 __apt_proxy__: { get_param: apt_proxy }
849 __docker_version__: { get_param: docker_version }
Gary Wud95bf2b2019-06-21 15:35:18 -0700850 __nfs_ip_addr__: { get_attr: [nfs_floating_ip, floating_ip_address] }
851 __nfs_private_ip_addr__: { get_attr: [nfs_floating_ip, fixed_ip_address] }
Gary Wu415f6a82019-04-11 15:56:27 -0700852 __host_private_ip_addr__: { get_attr: [k8s_09_floating_ip, fixed_ip_address] }
853 __mtu__: { get_param: mtu }
854 template:
855 get_file: k8s_vm_install.sh
856 - path: /opt/k8s_vm_init.sh
857 permissions: '0755'
858 content:
859 str_replace:
860 params:
861 __host_private_ip_addr__: { get_attr: [k8s_09_floating_ip, fixed_ip_address] }
862 __host_label__: 'compute'
863 template:
864 get_file: k8s_vm_init.sh
865 - path: /etc/init.d/k8s_vm_init_serv
866 permissions: '0755'
867 content:
868 get_file: k8s_vm_init_serv.sh
869
870 k8s_09_vm_config:
871 type: OS::Heat::MultipartMime
872 properties:
873 parts:
874 - config: { get_resource: k8s_09_vm_scripts }
875
876 k8s_09_vm:
877 type: OS::Nova::Server
878 properties:
879 name:
880 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '09' ] ]
881 image: { get_param: ubuntu_1804_image }
882 flavor: { get_param: k8s_vm_flavor }
883 key_name: { get_param: key_name }
884 networks:
885 - port: { get_resource: k8s_09_private_port }
886 user_data_format: SOFTWARE_CONFIG
887 user_data: { get_resource: k8s_09_vm_config }
Gary Wu415f6a82019-04-11 15:56:27 -0700888 k8s_10_private_port:
889 type: OS::Neutron::Port
890 properties:
891 network: { get_resource: oam_network }
892 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
893 security_groups:
894 - { get_resource: onap_sg }
895
896 k8s_10_floating_ip:
897 type: OS::Neutron::FloatingIP
898 properties:
899 floating_network_id: { get_param: public_net_id }
900 port_id: { get_resource: k8s_10_private_port }
901
902 k8s_10_vm_scripts:
903 type: OS::Heat::CloudConfig
904 properties:
905 cloud_config:
906 power_state:
907 mode: reboot
908 runcmd:
909 - [ /opt/k8s_vm_install.sh ]
910 write_files:
911 - path: /opt/k8s_vm_install.sh
912 permissions: '0755'
913 content:
914 str_replace:
915 params:
916 __docker_proxy__: { get_param: docker_proxy }
917 __apt_proxy__: { get_param: apt_proxy }
918 __docker_version__: { get_param: docker_version }
Gary Wud95bf2b2019-06-21 15:35:18 -0700919 __nfs_ip_addr__: { get_attr: [nfs_floating_ip, floating_ip_address] }
920 __nfs_private_ip_addr__: { get_attr: [nfs_floating_ip, fixed_ip_address] }
Gary Wu415f6a82019-04-11 15:56:27 -0700921 __host_private_ip_addr__: { get_attr: [k8s_10_floating_ip, fixed_ip_address] }
922 __mtu__: { get_param: mtu }
923 template:
924 get_file: k8s_vm_install.sh
925 - path: /opt/k8s_vm_init.sh
926 permissions: '0755'
927 content:
928 str_replace:
929 params:
930 __host_private_ip_addr__: { get_attr: [k8s_10_floating_ip, fixed_ip_address] }
931 __host_label__: 'compute'
932 template:
933 get_file: k8s_vm_init.sh
934 - path: /etc/init.d/k8s_vm_init_serv
935 permissions: '0755'
936 content:
937 get_file: k8s_vm_init_serv.sh
938
939 k8s_10_vm_config:
940 type: OS::Heat::MultipartMime
941 properties:
942 parts:
943 - config: { get_resource: k8s_10_vm_scripts }
944
945 k8s_10_vm:
946 type: OS::Nova::Server
947 properties:
948 name:
949 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '10' ] ]
950 image: { get_param: ubuntu_1804_image }
951 flavor: { get_param: k8s_vm_flavor }
952 key_name: { get_param: key_name }
953 networks:
954 - port: { get_resource: k8s_10_private_port }
955 user_data_format: SOFTWARE_CONFIG
956 user_data: { get_resource: k8s_10_vm_config }
Gary Wu415f6a82019-04-11 15:56:27 -0700957 k8s_11_private_port:
958 type: OS::Neutron::Port
959 properties:
960 network: { get_resource: oam_network }
961 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
962 security_groups:
963 - { get_resource: onap_sg }
964
965 k8s_11_floating_ip:
966 type: OS::Neutron::FloatingIP
967 properties:
968 floating_network_id: { get_param: public_net_id }
969 port_id: { get_resource: k8s_11_private_port }
970
971 k8s_11_vm_scripts:
972 type: OS::Heat::CloudConfig
973 properties:
974 cloud_config:
975 power_state:
976 mode: reboot
977 runcmd:
978 - [ /opt/k8s_vm_install.sh ]
979 write_files:
980 - path: /opt/k8s_vm_install.sh
981 permissions: '0755'
982 content:
983 str_replace:
984 params:
985 __docker_proxy__: { get_param: docker_proxy }
986 __apt_proxy__: { get_param: apt_proxy }
987 __docker_version__: { get_param: docker_version }
Gary Wud95bf2b2019-06-21 15:35:18 -0700988 __nfs_ip_addr__: { get_attr: [nfs_floating_ip, floating_ip_address] }
989 __nfs_private_ip_addr__: { get_attr: [nfs_floating_ip, fixed_ip_address] }
Gary Wu415f6a82019-04-11 15:56:27 -0700990 __host_private_ip_addr__: { get_attr: [k8s_11_floating_ip, fixed_ip_address] }
991 __mtu__: { get_param: mtu }
992 template:
993 get_file: k8s_vm_install.sh
994 - path: /opt/k8s_vm_init.sh
995 permissions: '0755'
996 content:
997 str_replace:
998 params:
999 __host_private_ip_addr__: { get_attr: [k8s_11_floating_ip, fixed_ip_address] }
1000 __host_label__: 'compute'
1001 template:
1002 get_file: k8s_vm_init.sh
1003 - path: /etc/init.d/k8s_vm_init_serv
1004 permissions: '0755'
1005 content:
1006 get_file: k8s_vm_init_serv.sh
1007
1008 k8s_11_vm_config:
1009 type: OS::Heat::MultipartMime
1010 properties:
1011 parts:
1012 - config: { get_resource: k8s_11_vm_scripts }
1013
1014 k8s_11_vm:
1015 type: OS::Nova::Server
1016 properties:
1017 name:
1018 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '11' ] ]
1019 image: { get_param: ubuntu_1804_image }
1020 flavor: { get_param: k8s_vm_flavor }
1021 key_name: { get_param: key_name }
1022 networks:
1023 - port: { get_resource: k8s_11_private_port }
1024 user_data_format: SOFTWARE_CONFIG
1025 user_data: { get_resource: k8s_11_vm_config }
Gary Wu415f6a82019-04-11 15:56:27 -07001026 k8s_12_private_port:
1027 type: OS::Neutron::Port
1028 properties:
1029 network: { get_resource: oam_network }
1030 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
1031 security_groups:
1032 - { get_resource: onap_sg }
1033
1034 k8s_12_floating_ip:
1035 type: OS::Neutron::FloatingIP
1036 properties:
1037 floating_network_id: { get_param: public_net_id }
1038 port_id: { get_resource: k8s_12_private_port }
1039
1040 k8s_12_vm_scripts:
1041 type: OS::Heat::CloudConfig
1042 properties:
1043 cloud_config:
1044 power_state:
1045 mode: reboot
1046 runcmd:
1047 - [ /opt/k8s_vm_install.sh ]
1048 write_files:
1049 - path: /opt/k8s_vm_install.sh
1050 permissions: '0755'
1051 content:
1052 str_replace:
1053 params:
1054 __docker_proxy__: { get_param: docker_proxy }
1055 __apt_proxy__: { get_param: apt_proxy }
1056 __docker_version__: { get_param: docker_version }
Gary Wud95bf2b2019-06-21 15:35:18 -07001057 __nfs_ip_addr__: { get_attr: [nfs_floating_ip, floating_ip_address] }
1058 __nfs_private_ip_addr__: { get_attr: [nfs_floating_ip, fixed_ip_address] }
Gary Wu415f6a82019-04-11 15:56:27 -07001059 __host_private_ip_addr__: { get_attr: [k8s_12_floating_ip, fixed_ip_address] }
1060 __mtu__: { get_param: mtu }
1061 template:
1062 get_file: k8s_vm_install.sh
1063 - path: /opt/k8s_vm_init.sh
1064 permissions: '0755'
1065 content:
1066 str_replace:
1067 params:
1068 __host_private_ip_addr__: { get_attr: [k8s_12_floating_ip, fixed_ip_address] }
1069 __host_label__: 'compute'
1070 template:
1071 get_file: k8s_vm_init.sh
1072 - path: /etc/init.d/k8s_vm_init_serv
1073 permissions: '0755'
1074 content:
1075 get_file: k8s_vm_init_serv.sh
1076
1077 k8s_12_vm_config:
1078 type: OS::Heat::MultipartMime
1079 properties:
1080 parts:
1081 - config: { get_resource: k8s_12_vm_scripts }
1082
1083 k8s_12_vm:
1084 type: OS::Nova::Server
1085 properties:
1086 name:
1087 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '12' ] ]
1088 image: { get_param: ubuntu_1804_image }
1089 flavor: { get_param: k8s_vm_flavor }
1090 key_name: { get_param: key_name }
1091 networks:
1092 - port: { get_resource: k8s_12_private_port }
1093 user_data_format: SOFTWARE_CONFIG
1094 user_data: { get_resource: k8s_12_vm_config }
Gary Wu950a3232019-03-26 13:08:29 -07001095 orch_1_private_port:
1096 type: OS::Neutron::Port
1097 properties:
1098 network: { get_resource: oam_network }
1099 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
1100 security_groups:
1101 - { get_resource: onap_sg }
1102
1103 orch_1_floating_ip:
1104 type: OS::Neutron::FloatingIP
1105 properties:
1106 floating_network_id: { get_param: public_net_id }
1107 port_id: { get_resource: orch_1_private_port }
1108
1109 orch_1_vm_scripts:
1110 type: OS::Heat::CloudConfig
1111 properties:
1112 cloud_config:
1113 power_state:
1114 mode: reboot
1115 runcmd:
1116 - [ /opt/k8s_vm_install.sh ]
1117 write_files:
1118 - path: /opt/k8s_vm_install.sh
1119 permissions: '0755'
1120 content:
1121 str_replace:
1122 params:
1123 __docker_proxy__: { get_param: docker_proxy }
1124 __apt_proxy__: { get_param: apt_proxy }
1125 __docker_version__: { get_param: docker_version }
Gary Wud95bf2b2019-06-21 15:35:18 -07001126 __nfs_ip_addr__: { get_attr: [nfs_floating_ip, floating_ip_address] }
1127 __nfs_private_ip_addr__: { get_attr: [nfs_floating_ip, fixed_ip_address] }
Gary Wu950a3232019-03-26 13:08:29 -07001128 __host_private_ip_addr__: { get_attr: [orch_1_floating_ip, fixed_ip_address] }
1129 __mtu__: { get_param: mtu }
1130 template:
1131 get_file: k8s_vm_install.sh
1132 - path: /opt/k8s_vm_init.sh
1133 permissions: '0755'
1134 content:
1135 str_replace:
1136 params:
1137 __host_private_ip_addr__: { get_attr: [orch_1_floating_ip, fixed_ip_address] }
1138 __host_label__: 'orchestration'
1139 template:
1140 get_file: k8s_vm_init.sh
1141 - path: /etc/init.d/k8s_vm_init_serv
1142 permissions: '0755'
1143 content:
1144 get_file: k8s_vm_init_serv.sh
1145
1146 orch_1_vm_config:
1147 type: OS::Heat::MultipartMime
1148 properties:
1149 parts:
1150 - config: { get_resource: orch_1_vm_scripts }
1151
1152 orch_1_vm:
1153 type: OS::Nova::Server
1154 properties:
1155 name:
1156 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'orch', '1' ] ]
1157 image: { get_param: ubuntu_1804_image }
1158 flavor: { get_param: orch_vm_flavor }
1159 key_name: { get_param: key_name }
1160 networks:
1161 - port: { get_resource: orch_1_private_port }
1162 user_data_format: SOFTWARE_CONFIG
1163 user_data: { get_resource: orch_1_vm_config }
Gary Wu950a3232019-03-26 13:08:29 -07001164 orch_2_private_port:
1165 type: OS::Neutron::Port
1166 properties:
1167 network: { get_resource: oam_network }
1168 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
1169 security_groups:
1170 - { get_resource: onap_sg }
1171
1172 orch_2_floating_ip:
1173 type: OS::Neutron::FloatingIP
1174 properties:
1175 floating_network_id: { get_param: public_net_id }
1176 port_id: { get_resource: orch_2_private_port }
1177
1178 orch_2_vm_scripts:
1179 type: OS::Heat::CloudConfig
1180 properties:
1181 cloud_config:
1182 power_state:
1183 mode: reboot
1184 runcmd:
1185 - [ /opt/k8s_vm_install.sh ]
1186 write_files:
1187 - path: /opt/k8s_vm_install.sh
1188 permissions: '0755'
1189 content:
1190 str_replace:
1191 params:
1192 __docker_proxy__: { get_param: docker_proxy }
1193 __apt_proxy__: { get_param: apt_proxy }
1194 __docker_version__: { get_param: docker_version }
Gary Wud95bf2b2019-06-21 15:35:18 -07001195 __nfs_ip_addr__: { get_attr: [nfs_floating_ip, floating_ip_address] }
1196 __nfs_private_ip_addr__: { get_attr: [nfs_floating_ip, fixed_ip_address] }
Gary Wu950a3232019-03-26 13:08:29 -07001197 __host_private_ip_addr__: { get_attr: [orch_2_floating_ip, fixed_ip_address] }
1198 __mtu__: { get_param: mtu }
1199 template:
1200 get_file: k8s_vm_install.sh
1201 - path: /opt/k8s_vm_init.sh
1202 permissions: '0755'
1203 content:
1204 str_replace:
1205 params:
1206 __host_private_ip_addr__: { get_attr: [orch_2_floating_ip, fixed_ip_address] }
1207 __host_label__: 'orchestration'
1208 template:
1209 get_file: k8s_vm_init.sh
1210 - path: /etc/init.d/k8s_vm_init_serv
1211 permissions: '0755'
1212 content:
1213 get_file: k8s_vm_init_serv.sh
1214
1215 orch_2_vm_config:
1216 type: OS::Heat::MultipartMime
1217 properties:
1218 parts:
1219 - config: { get_resource: orch_2_vm_scripts }
1220
1221 orch_2_vm:
1222 type: OS::Nova::Server
1223 properties:
1224 name:
1225 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'orch', '2' ] ]
1226 image: { get_param: ubuntu_1804_image }
1227 flavor: { get_param: orch_vm_flavor }
1228 key_name: { get_param: key_name }
1229 networks:
1230 - port: { get_resource: orch_2_private_port }
1231 user_data_format: SOFTWARE_CONFIG
1232 user_data: { get_resource: orch_2_vm_config }
Gary Wu950a3232019-03-26 13:08:29 -07001233 orch_3_private_port:
1234 type: OS::Neutron::Port
1235 properties:
1236 network: { get_resource: oam_network }
1237 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
1238 security_groups:
1239 - { get_resource: onap_sg }
1240
1241 orch_3_floating_ip:
1242 type: OS::Neutron::FloatingIP
1243 properties:
1244 floating_network_id: { get_param: public_net_id }
1245 port_id: { get_resource: orch_3_private_port }
1246
1247 orch_3_vm_scripts:
1248 type: OS::Heat::CloudConfig
1249 properties:
1250 cloud_config:
1251 power_state:
1252 mode: reboot
1253 runcmd:
1254 - [ /opt/k8s_vm_install.sh ]
1255 write_files:
1256 - path: /opt/k8s_vm_install.sh
1257 permissions: '0755'
1258 content:
1259 str_replace:
1260 params:
1261 __docker_proxy__: { get_param: docker_proxy }
1262 __apt_proxy__: { get_param: apt_proxy }
1263 __docker_version__: { get_param: docker_version }
Gary Wud95bf2b2019-06-21 15:35:18 -07001264 __nfs_ip_addr__: { get_attr: [nfs_floating_ip, floating_ip_address] }
1265 __nfs_private_ip_addr__: { get_attr: [nfs_floating_ip, fixed_ip_address] }
Gary Wu950a3232019-03-26 13:08:29 -07001266 __host_private_ip_addr__: { get_attr: [orch_3_floating_ip, fixed_ip_address] }
1267 __mtu__: { get_param: mtu }
1268 template:
1269 get_file: k8s_vm_install.sh
1270 - path: /opt/k8s_vm_init.sh
1271 permissions: '0755'
1272 content:
1273 str_replace:
1274 params:
1275 __host_private_ip_addr__: { get_attr: [orch_3_floating_ip, fixed_ip_address] }
1276 __host_label__: 'orchestration'
1277 template:
1278 get_file: k8s_vm_init.sh
1279 - path: /etc/init.d/k8s_vm_init_serv
1280 permissions: '0755'
1281 content:
1282 get_file: k8s_vm_init_serv.sh
1283
1284 orch_3_vm_config:
1285 type: OS::Heat::MultipartMime
1286 properties:
1287 parts:
1288 - config: { get_resource: orch_3_vm_scripts }
1289
1290 orch_3_vm:
1291 type: OS::Nova::Server
1292 properties:
1293 name:
1294 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'orch', '3' ] ]
1295 image: { get_param: ubuntu_1804_image }
1296 flavor: { get_param: orch_vm_flavor }
1297 key_name: { get_param: key_name }
1298 networks:
1299 - port: { get_resource: orch_3_private_port }
1300 user_data_format: SOFTWARE_CONFIG
1301 user_data: { get_resource: orch_3_vm_config }
Gary Wu950a3232019-03-26 13:08:29 -07001302outputs:
Gary Wu0bc69832019-03-27 13:58:46 -07001303 docker_proxy:
1304 value: { get_param: docker_proxy }
1305
Gary Wud95bf2b2019-06-21 15:35:18 -07001306 nfs_vm_ip:
1307 description: The IP address of the nfs instance
1308 value: { get_attr: [nfs_floating_ip, floating_ip_address] }
Gary Wu950a3232019-03-26 13:08:29 -07001309
Gary Wud95bf2b2019-06-21 15:35:18 -07001310 nfs_vm_private_ip:
1311 description: The private IP address of the nfs instance
1312 value: { get_attr: [nfs_floating_ip, fixed_ip_address] }
Gary Wu4d483602019-06-07 14:11:53 -07001313
Gary Wu950a3232019-03-26 13:08:29 -07001314 k8s_01_vm_ip:
1315 description: The IP address of the k8s_01 instance
1316 value: { get_attr: [k8s_01_floating_ip, floating_ip_address] }
1317
1318 k8s_01_vm_private_ip:
1319 description: The private IP address of the k8s_01 instance
1320 value: { get_attr: [k8s_01_floating_ip, fixed_ip_address] }
1321
1322 k8s_02_vm_ip:
1323 description: The IP address of the k8s_02 instance
1324 value: { get_attr: [k8s_02_floating_ip, floating_ip_address] }
1325
1326 k8s_02_vm_private_ip:
1327 description: The private IP address of the k8s_02 instance
1328 value: { get_attr: [k8s_02_floating_ip, fixed_ip_address] }
1329
1330 k8s_03_vm_ip:
1331 description: The IP address of the k8s_03 instance
1332 value: { get_attr: [k8s_03_floating_ip, floating_ip_address] }
1333
1334 k8s_03_vm_private_ip:
1335 description: The private IP address of the k8s_03 instance
1336 value: { get_attr: [k8s_03_floating_ip, fixed_ip_address] }
1337
1338 k8s_04_vm_ip:
1339 description: The IP address of the k8s_04 instance
1340 value: { get_attr: [k8s_04_floating_ip, floating_ip_address] }
1341
1342 k8s_04_vm_private_ip:
1343 description: The private IP address of the k8s_04 instance
1344 value: { get_attr: [k8s_04_floating_ip, fixed_ip_address] }
1345
1346 k8s_05_vm_ip:
1347 description: The IP address of the k8s_05 instance
1348 value: { get_attr: [k8s_05_floating_ip, floating_ip_address] }
1349
1350 k8s_05_vm_private_ip:
1351 description: The private IP address of the k8s_05 instance
1352 value: { get_attr: [k8s_05_floating_ip, fixed_ip_address] }
1353
1354 k8s_06_vm_ip:
1355 description: The IP address of the k8s_06 instance
1356 value: { get_attr: [k8s_06_floating_ip, floating_ip_address] }
1357
1358 k8s_06_vm_private_ip:
1359 description: The private IP address of the k8s_06 instance
1360 value: { get_attr: [k8s_06_floating_ip, fixed_ip_address] }
1361
Gary Wu415f6a82019-04-11 15:56:27 -07001362 k8s_07_vm_ip:
1363 description: The IP address of the k8s_07 instance
1364 value: { get_attr: [k8s_07_floating_ip, floating_ip_address] }
1365
1366 k8s_07_vm_private_ip:
1367 description: The private IP address of the k8s_07 instance
1368 value: { get_attr: [k8s_07_floating_ip, fixed_ip_address] }
1369
1370 k8s_08_vm_ip:
1371 description: The IP address of the k8s_08 instance
1372 value: { get_attr: [k8s_08_floating_ip, floating_ip_address] }
1373
1374 k8s_08_vm_private_ip:
1375 description: The private IP address of the k8s_08 instance
1376 value: { get_attr: [k8s_08_floating_ip, fixed_ip_address] }
1377
1378 k8s_09_vm_ip:
1379 description: The IP address of the k8s_09 instance
1380 value: { get_attr: [k8s_09_floating_ip, floating_ip_address] }
1381
1382 k8s_09_vm_private_ip:
1383 description: The private IP address of the k8s_09 instance
1384 value: { get_attr: [k8s_09_floating_ip, fixed_ip_address] }
1385
1386 k8s_10_vm_ip:
1387 description: The IP address of the k8s_10 instance
1388 value: { get_attr: [k8s_10_floating_ip, floating_ip_address] }
1389
1390 k8s_10_vm_private_ip:
1391 description: The private IP address of the k8s_10 instance
1392 value: { get_attr: [k8s_10_floating_ip, fixed_ip_address] }
1393
1394 k8s_11_vm_ip:
1395 description: The IP address of the k8s_11 instance
1396 value: { get_attr: [k8s_11_floating_ip, floating_ip_address] }
1397
1398 k8s_11_vm_private_ip:
1399 description: The private IP address of the k8s_11 instance
1400 value: { get_attr: [k8s_11_floating_ip, fixed_ip_address] }
1401
1402 k8s_12_vm_ip:
1403 description: The IP address of the k8s_12 instance
1404 value: { get_attr: [k8s_12_floating_ip, floating_ip_address] }
1405
1406 k8s_12_vm_private_ip:
1407 description: The private IP address of the k8s_12 instance
1408 value: { get_attr: [k8s_12_floating_ip, fixed_ip_address] }
1409
Gary Wu950a3232019-03-26 13:08:29 -07001410 orch_1_vm_ip:
1411 description: The IP address of the orch_1 instance
1412 value: { get_attr: [orch_1_floating_ip, floating_ip_address] }
1413
1414 orch_1_vm_private_ip:
1415 description: The private IP address of the orch_1 instance
1416 value: { get_attr: [orch_1_floating_ip, fixed_ip_address] }
1417
1418 orch_2_vm_ip:
1419 description: The IP address of the orch_2 instance
1420 value: { get_attr: [orch_2_floating_ip, floating_ip_address] }
1421
1422 orch_2_vm_private_ip:
1423 description: The private IP address of the orch_2 instance
1424 value: { get_attr: [orch_2_floating_ip, fixed_ip_address] }
1425
1426 orch_3_vm_ip:
1427 description: The IP address of the orch_3 instance
1428 value: { get_attr: [orch_3_floating_ip, floating_ip_address] }
1429
1430 orch_3_vm_private_ip:
1431 description: The private IP address of the orch_3 instance
1432 value: { get_attr: [orch_3_floating_ip, fixed_ip_address] }
1433