blob: 66c98ee83fe1e59febb3032f0601cd23cacfe142 [file] [log] [blame]
Gary Wu11c98742018-05-02 16:19:04 -07001#
2# Generated by scripts/gen-onap-oom-yaml.sh; MANUAL CHANGES WILL BE LOST
3#
Gary Wuccd529b2018-01-16 18:31:01 -08004heat_template_version: 2015-10-15
5description: ONAP on Kubernetes using OOM
6
7parameters:
Gary Wuccd529b2018-01-16 18:31:01 -08008 docker_proxy:
9 type: string
10
11 apt_proxy:
12 type: string
13
Gary Wuc98156d2018-01-18 12:03:26 -080014 public_net_id:
15 type: string
16 description: The ID of the Public network for floating IP address allocation
17
Gary Wuc98156d2018-01-18 12:03:26 -080018 oam_network_cidr:
19 type: string
20 description: CIDR of the OAM ONAP network
21
Gary Wu60dd0d82018-01-18 14:54:47 -080022 ubuntu_1604_image:
23 type: string
24 description: Name of the Ubuntu 16.04 image
25
Gary Wu60dd0d82018-01-18 14:54:47 -080026 rancher_vm_flavor:
27 type: string
Gary Wu11c98742018-05-02 16:19:04 -070028 description: VM flavor for Rancher
Gary Wu60dd0d82018-01-18 14:54:47 -080029
30 k8s_vm_flavor:
31 type: string
Gary Wu11c98742018-05-02 16:19:04 -070032 description: VM flavor for k8s hosts
33
Gary Wu3fd6c2a2018-10-28 21:44:00 -070034 etcd_vm_flavor:
35 type: string
36 description: VM flavor for etcd hosts
37
38 orch_vm_flavor:
39 type: string
40 description: VM flavor for orch hosts
41
Gary Wu11c98742018-05-02 16:19:04 -070042 integration_override_yaml:
43 type: string
44 description: Content for integration_override.yaml
Gary Wu60dd0d82018-01-18 14:54:47 -080045
Gary Wu87aa8b52018-08-09 08:10:24 -070046 integration_gerrit_branch:
Gary Wu81836d22018-06-22 13:48:50 -070047 type: string
48 default: "master"
49
Gary Wu87aa8b52018-08-09 08:10:24 -070050 integration_gerrit_refspec:
51 type: string
Gary Wu6842fa32018-11-20 10:29:22 -080052 default: ""
Gary Wu87aa8b52018-08-09 08:10:24 -070053
54 oom_gerrit_branch:
55 type: string
56 default: "master"
57
58 oom_gerrit_refspec:
Gary Wu81836d22018-06-22 13:48:50 -070059 type: string
Gary Wu6842fa32018-11-20 10:29:22 -080060 default: ""
Gary Wu81836d22018-06-22 13:48:50 -070061
62 docker_manifest:
63 type: string
Gary Wu87aa8b52018-08-09 08:10:24 -070064 default: ""
Gary Wu81836d22018-06-22 13:48:50 -070065
gwu10db4622018-07-17 22:11:39 -070066 key_name:
67 type: string
68 default: "onap_key"
69
Gary Wu7a04b3d2018-08-15 12:31:46 -070070 docker_version:
71 type: string
Gary Wu3fd6c2a2018-10-28 21:44:00 -070072 default: "17.03.2"
Gary Wu7a04b3d2018-08-15 12:31:46 -070073
74 rancher_version:
75 type: string
Gary Wu37699b52019-03-22 10:59:03 -070076 default: "1.6.26"
Gary Wu7a04b3d2018-08-15 12:31:46 -070077
78 rancher_agent_version:
79 type: string
Gary Wu3fd6c2a2018-10-28 21:44:00 -070080 default: "1.2.11"
Gary Wu7a04b3d2018-08-15 12:31:46 -070081
82 kubectl_version:
83 type: string
Gary Wud1edb202019-03-22 13:09:59 -070084 default: "1.11.8"
Gary Wu7a04b3d2018-08-15 12:31:46 -070085
86 helm_version:
87 type: string
88 default: "2.9.1"
89
Gary Wu48a32942018-11-08 07:34:49 -080090 helm_deploy_delay:
91 type: string
92 default: "2m"
93
94 use_ramdisk:
95 type: string
96 description: Set to "true" if you want to use a RAM disk for /dockerdata-nfs/.
97 default: "false"
98
Gary Wub8be70a2018-11-17 17:14:38 -080099 mtu:
100 type: number
101 default: 1500
102
Gary Wu4a69d512018-12-10 11:31:24 -0800103 portal_hostname:
104 type: string
105 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
106 default: "portal.api.simpledemo.onap.org"
107
Gary Wuccd529b2018-01-16 18:31:01 -0800108resources:
Gary Wuc98156d2018-01-18 12:03:26 -0800109 random-str:
110 type: OS::Heat::RandomString
111 properties:
112 length: 4
113
Gary Wubc11e5d2018-02-07 10:23:27 -0800114 # ONAP security group
115 onap_sg:
116 type: OS::Neutron::SecurityGroup
117 properties:
118 name:
119 str_replace:
120 template: base_rand
121 params:
122 base: onap_sg
123 rand: { get_resource: random-str }
124 description: security group used by ONAP
125 rules:
126 # All egress traffic
127 - direction: egress
128 ethertype: IPv4
129 - direction: egress
130 ethertype: IPv6
131 # ingress traffic
132 # ICMP
133 - protocol: icmp
134 - protocol: udp
135 port_range_min: 1
136 port_range_max: 65535
137 - protocol: tcp
138 port_range_min: 1
139 port_range_max: 65535
Marco Platania2a6faaa2018-11-12 15:00:08 -0500140 # Protocols used for vLB/vDNS use case
141 - protocol: 47
142 - protocol: 53
143 - protocol: 132
Gary Wubc11e5d2018-02-07 10:23:27 -0800144
145
Gary Wu52dfdcb2018-01-25 11:02:48 -0800146 # ONAP management private network
147 oam_network:
148 type: OS::Neutron::Net
149 properties:
150 name:
151 str_replace:
152 template: oam_network_rand
153 params:
154 rand: { get_resource: random-str }
155
156 oam_subnet:
157 type: OS::Neutron::Subnet
158 properties:
159 name:
160 str_replace:
161 template: oam_network_rand
162 params:
163 rand: { get_resource: random-str }
164 network_id: { get_resource: oam_network }
165 cidr: { get_param: oam_network_cidr }
Gary Wu14a6b302018-05-01 15:59:28 -0700166 dns_nameservers: [ "8.8.8.8" ]
Gary Wu52dfdcb2018-01-25 11:02:48 -0800167
168 router:
169 type: OS::Neutron::Router
170 properties:
eHanan97b7a9c2018-09-05 14:09:19 +0100171 name:
172 list_join: ['-', [{ get_param: 'OS::stack_name' }, 'router']]
Gary Wu52dfdcb2018-01-25 11:02:48 -0800173 external_gateway_info:
174 network: { get_param: public_net_id }
175
176 router_interface:
177 type: OS::Neutron::RouterInterface
178 properties:
179 router_id: { get_resource: router }
180 subnet_id: { get_resource: oam_subnet }
181
Gary Wu374498a2018-02-06 17:31:04 -0800182 rancher_private_port:
183 type: OS::Neutron::Port
184 properties:
185 network: { get_resource: oam_network }
186 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
Gary Wubc11e5d2018-02-07 10:23:27 -0800187 security_groups:
188 - { get_resource: onap_sg }
Gary Wu374498a2018-02-06 17:31:04 -0800189
190 rancher_floating_ip:
191 type: OS::Neutron::FloatingIP
192 properties:
193 floating_network_id: { get_param: public_net_id }
194 port_id: { get_resource: rancher_private_port }
195
Gary Wuccd529b2018-01-16 18:31:01 -0800196 rancher_vm:
197 type: OS::Nova::Server
198 properties:
eHanan97b7a9c2018-09-05 14:09:19 +0100199 name:
200 list_join: ['-', [{ get_param: 'OS::stack_name' }, 'rancher']]
Gary Wu558ac6e2018-01-19 14:53:12 -0800201 image: { get_param: ubuntu_1604_image }
Gary Wu60dd0d82018-01-18 14:54:47 -0800202 flavor: { get_param: rancher_vm_flavor }
gwu10db4622018-07-17 22:11:39 -0700203 key_name: { get_param: key_name }
Gary Wuccd529b2018-01-16 18:31:01 -0800204 networks:
Gary Wu374498a2018-02-06 17:31:04 -0800205 - port: { get_resource: rancher_private_port }
Gary Wuccd529b2018-01-16 18:31:01 -0800206 user_data_format: RAW
207 user_data:
208 str_replace:
Gary Wu1ff56672018-01-17 20:51:45 -0800209 template:
210 get_file: rancher_vm_entrypoint.sh
Gary Wu14a6b302018-05-01 15:59:28 -0700211 params:
Gary Wu14a6b302018-05-01 15:59:28 -0700212 __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] }
Gary Wuad513722018-07-26 13:08:47 -0700215 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu11c98742018-05-02 16:19:04 -0700216 __integration_override_yaml__: { get_param: integration_override_yaml }
Gary Wu87aa8b52018-08-09 08:10:24 -0700217 __integration_gerrit_branch__: { get_param: integration_gerrit_branch }
218 __integration_gerrit_refspec__: { get_param: integration_gerrit_refspec }
219 __oom_gerrit_branch__: { get_param: oom_gerrit_branch }
220 __oom_gerrit_refspec__: { get_param: oom_gerrit_refspec }
Gary Wu81836d22018-06-22 13:48:50 -0700221 __docker_manifest__: { get_param: docker_manifest }
Gary Wu7a04b3d2018-08-15 12:31:46 -0700222 __docker_version__: { get_param: docker_version }
223 __rancher_version__: { get_param: rancher_version }
224 __rancher_agent_version__: { get_param: rancher_agent_version }
225 __kubectl_version__: { get_param: kubectl_version }
226 __helm_version__: { get_param: helm_version }
Gary Wu48a32942018-11-08 07:34:49 -0800227 __helm_deploy_delay__: { get_param: helm_deploy_delay }
228 __use_ramdisk__: { get_param: use_ramdisk }
Gary Wub8be70a2018-11-17 17:14:38 -0800229 __mtu__: { get_param: mtu }
Gary Wu4a69d512018-12-10 11:31:24 -0800230 __portal_hostname__: { get_param: portal_hostname }
Gary Wu978171e2018-07-24 11:56:01 -0700231 __public_net_id__: { get_param: public_net_id }
232 __oam_network_cidr__: { get_param: oam_network_cidr }
Gary Wu11c98742018-05-02 16:19:04 -0700233 __oam_network_id__: { get_resource: oam_network }
234 __oam_subnet_id__: { get_resource: oam_subnet }
Gary Wu17440fe2018-10-22 15:12:07 -0700235 __sec_group__: { get_resource: onap_sg }
Gary Wu48a32942018-11-08 07:34:49 -0800236 __k8s_01_vm_ip__: { get_attr: [k8s_01_floating_ip, floating_ip_address] }
Gary Wu14a6b302018-05-01 15:59:28 -0700237 __k8s_vm_ips__: [
Gary Wu48a32942018-11-08 07:34:49 -0800238 get_attr: [k8s_01_floating_ip, floating_ip_address],
239 get_attr: [k8s_02_floating_ip, floating_ip_address],
240 get_attr: [k8s_03_floating_ip, floating_ip_address],
241 get_attr: [k8s_04_floating_ip, floating_ip_address],
242 get_attr: [k8s_05_floating_ip, floating_ip_address],
243 get_attr: [k8s_06_floating_ip, floating_ip_address],
Gary Wu14a6b302018-05-01 15:59:28 -0700244 ]
Gary Wuad513722018-07-26 13:08:47 -0700245 __k8s_private_ips__: [
Gary Wu48a32942018-11-08 07:34:49 -0800246 get_attr: [k8s_01_floating_ip, fixed_ip_address],
247 get_attr: [k8s_02_floating_ip, fixed_ip_address],
248 get_attr: [k8s_03_floating_ip, fixed_ip_address],
249 get_attr: [k8s_04_floating_ip, fixed_ip_address],
250 get_attr: [k8s_05_floating_ip, fixed_ip_address],
251 get_attr: [k8s_06_floating_ip, fixed_ip_address],
Gary Wuad513722018-07-26 13:08:47 -0700252 ]
Gary Wu48a32942018-11-08 07:34:49 -0800253 k8s_01_private_port:
Gary Wu52dfdcb2018-01-25 11:02:48 -0800254 type: OS::Neutron::Port
255 properties:
256 network: { get_resource: oam_network }
257 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
Gary Wubc11e5d2018-02-07 10:23:27 -0800258 security_groups:
259 - { get_resource: onap_sg }
Gary Wu52dfdcb2018-01-25 11:02:48 -0800260
Gary Wu48a32942018-11-08 07:34:49 -0800261 k8s_01_floating_ip:
Gary Wu52dfdcb2018-01-25 11:02:48 -0800262 type: OS::Neutron::FloatingIP
263 properties:
264 floating_network_id: { get_param: public_net_id }
Gary Wu48a32942018-11-08 07:34:49 -0800265 port_id: { get_resource: k8s_01_private_port }
Gary Wu52dfdcb2018-01-25 11:02:48 -0800266
Gary Wub7189982018-11-14 10:01:37 -0800267 k8s_01_vm_scripts:
268 type: OS::Heat::CloudConfig
269 properties:
270 cloud_config:
271 power_state:
272 mode: reboot
273 runcmd:
274 - [ /opt/k8s_vm_install.sh ]
275 write_files:
276 - path: /opt/k8s_vm_install.sh
277 permissions: '0755'
278 content:
279 str_replace:
280 params:
281 __docker_proxy__: { get_param: docker_proxy }
282 __apt_proxy__: { get_param: apt_proxy }
283 __docker_version__: { get_param: docker_version }
284 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
285 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
286 __host_private_ip_addr__: { get_attr: [k8s_01_floating_ip, fixed_ip_address] }
Gary Wub8be70a2018-11-17 17:14:38 -0800287 __mtu__: { get_param: mtu }
Gary Wub7189982018-11-14 10:01:37 -0800288 template:
289 get_file: k8s_vm_install.sh
290 - path: /opt/k8s_vm_init.sh
291 permissions: '0755'
292 content:
293 str_replace:
294 params:
295 __host_private_ip_addr__: { get_attr: [k8s_01_floating_ip, fixed_ip_address] }
296 __host_label__: 'compute'
297 template:
298 get_file: k8s_vm_init.sh
299 - path: /etc/init.d/k8s_vm_init_serv
300 permissions: '0755'
301 content:
302 get_file: k8s_vm_init_serv.sh
303
304 k8s_01_vm_config:
305 type: OS::Heat::MultipartMime
306 properties:
307 parts:
308 - config: { get_resource: k8s_01_vm_scripts }
309
Gary Wu48a32942018-11-08 07:34:49 -0800310 k8s_01_vm:
Gary Wuccd529b2018-01-16 18:31:01 -0800311 type: OS::Nova::Server
312 properties:
eHanan97b7a9c2018-09-05 14:09:19 +0100313 name:
Gary Wu48a32942018-11-08 07:34:49 -0800314 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '01' ] ]
Gary Wu558ac6e2018-01-19 14:53:12 -0800315 image: { get_param: ubuntu_1604_image }
Gary Wu60dd0d82018-01-18 14:54:47 -0800316 flavor: { get_param: k8s_vm_flavor }
gwu10db4622018-07-17 22:11:39 -0700317 key_name: { get_param: key_name }
Gary Wuccd529b2018-01-16 18:31:01 -0800318 networks:
Gary Wu48a32942018-11-08 07:34:49 -0800319 - port: { get_resource: k8s_01_private_port }
Gary Wub7189982018-11-14 10:01:37 -0800320 user_data_format: SOFTWARE_CONFIG
321 user_data: { get_resource: k8s_01_vm_config }
Gary Wu14a6b302018-05-01 15:59:28 -0700322
Gary Wu48a32942018-11-08 07:34:49 -0800323 k8s_02_private_port:
Gary Wu14a6b302018-05-01 15:59:28 -0700324 type: OS::Neutron::Port
325 properties:
326 network: { get_resource: oam_network }
327 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
328 security_groups:
329 - { get_resource: onap_sg }
330
Gary Wu48a32942018-11-08 07:34:49 -0800331 k8s_02_floating_ip:
Gary Wu14a6b302018-05-01 15:59:28 -0700332 type: OS::Neutron::FloatingIP
333 properties:
334 floating_network_id: { get_param: public_net_id }
Gary Wu48a32942018-11-08 07:34:49 -0800335 port_id: { get_resource: k8s_02_private_port }
Gary Wu14a6b302018-05-01 15:59:28 -0700336
Gary Wub7189982018-11-14 10:01:37 -0800337 k8s_02_vm_scripts:
338 type: OS::Heat::CloudConfig
339 properties:
340 cloud_config:
341 power_state:
342 mode: reboot
343 runcmd:
344 - [ /opt/k8s_vm_install.sh ]
345 write_files:
346 - path: /opt/k8s_vm_install.sh
347 permissions: '0755'
348 content:
349 str_replace:
350 params:
351 __docker_proxy__: { get_param: docker_proxy }
352 __apt_proxy__: { get_param: apt_proxy }
353 __docker_version__: { get_param: docker_version }
354 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
355 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
356 __host_private_ip_addr__: { get_attr: [k8s_02_floating_ip, fixed_ip_address] }
Gary Wub8be70a2018-11-17 17:14:38 -0800357 __mtu__: { get_param: mtu }
Gary Wub7189982018-11-14 10:01:37 -0800358 template:
359 get_file: k8s_vm_install.sh
360 - path: /opt/k8s_vm_init.sh
361 permissions: '0755'
362 content:
363 str_replace:
364 params:
365 __host_private_ip_addr__: { get_attr: [k8s_02_floating_ip, fixed_ip_address] }
366 __host_label__: 'compute'
367 template:
368 get_file: k8s_vm_init.sh
369 - path: /etc/init.d/k8s_vm_init_serv
370 permissions: '0755'
371 content:
372 get_file: k8s_vm_init_serv.sh
373
374 k8s_02_vm_config:
375 type: OS::Heat::MultipartMime
376 properties:
377 parts:
378 - config: { get_resource: k8s_02_vm_scripts }
379
Gary Wu48a32942018-11-08 07:34:49 -0800380 k8s_02_vm:
Gary Wu14a6b302018-05-01 15:59:28 -0700381 type: OS::Nova::Server
382 properties:
eHanan97b7a9c2018-09-05 14:09:19 +0100383 name:
Gary Wu48a32942018-11-08 07:34:49 -0800384 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '02' ] ]
Gary Wu14a6b302018-05-01 15:59:28 -0700385 image: { get_param: ubuntu_1604_image }
386 flavor: { get_param: k8s_vm_flavor }
gwu10db4622018-07-17 22:11:39 -0700387 key_name: { get_param: key_name }
Gary Wu14a6b302018-05-01 15:59:28 -0700388 networks:
Gary Wu48a32942018-11-08 07:34:49 -0800389 - port: { get_resource: k8s_02_private_port }
Gary Wub7189982018-11-14 10:01:37 -0800390 user_data_format: SOFTWARE_CONFIG
391 user_data: { get_resource: k8s_02_vm_config }
Gary Wu14a6b302018-05-01 15:59:28 -0700392
Gary Wu48a32942018-11-08 07:34:49 -0800393 k8s_03_private_port:
Gary Wu14a6b302018-05-01 15:59:28 -0700394 type: OS::Neutron::Port
395 properties:
396 network: { get_resource: oam_network }
397 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
398 security_groups:
399 - { get_resource: onap_sg }
400
Gary Wu48a32942018-11-08 07:34:49 -0800401 k8s_03_floating_ip:
Gary Wu14a6b302018-05-01 15:59:28 -0700402 type: OS::Neutron::FloatingIP
403 properties:
404 floating_network_id: { get_param: public_net_id }
Gary Wu48a32942018-11-08 07:34:49 -0800405 port_id: { get_resource: k8s_03_private_port }
Gary Wu14a6b302018-05-01 15:59:28 -0700406
Gary Wub7189982018-11-14 10:01:37 -0800407 k8s_03_vm_scripts:
408 type: OS::Heat::CloudConfig
409 properties:
410 cloud_config:
411 power_state:
412 mode: reboot
413 runcmd:
414 - [ /opt/k8s_vm_install.sh ]
415 write_files:
416 - path: /opt/k8s_vm_install.sh
417 permissions: '0755'
418 content:
419 str_replace:
420 params:
421 __docker_proxy__: { get_param: docker_proxy }
422 __apt_proxy__: { get_param: apt_proxy }
423 __docker_version__: { get_param: docker_version }
424 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
425 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
426 __host_private_ip_addr__: { get_attr: [k8s_03_floating_ip, fixed_ip_address] }
Gary Wub8be70a2018-11-17 17:14:38 -0800427 __mtu__: { get_param: mtu }
Gary Wub7189982018-11-14 10:01:37 -0800428 template:
429 get_file: k8s_vm_install.sh
430 - path: /opt/k8s_vm_init.sh
431 permissions: '0755'
432 content:
433 str_replace:
434 params:
435 __host_private_ip_addr__: { get_attr: [k8s_03_floating_ip, fixed_ip_address] }
436 __host_label__: 'compute'
437 template:
438 get_file: k8s_vm_init.sh
439 - path: /etc/init.d/k8s_vm_init_serv
440 permissions: '0755'
441 content:
442 get_file: k8s_vm_init_serv.sh
443
444 k8s_03_vm_config:
445 type: OS::Heat::MultipartMime
446 properties:
447 parts:
448 - config: { get_resource: k8s_03_vm_scripts }
449
Gary Wu48a32942018-11-08 07:34:49 -0800450 k8s_03_vm:
Gary Wu14a6b302018-05-01 15:59:28 -0700451 type: OS::Nova::Server
452 properties:
eHanan97b7a9c2018-09-05 14:09:19 +0100453 name:
Gary Wu48a32942018-11-08 07:34:49 -0800454 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '03' ] ]
Gary Wu14a6b302018-05-01 15:59:28 -0700455 image: { get_param: ubuntu_1604_image }
456 flavor: { get_param: k8s_vm_flavor }
gwu10db4622018-07-17 22:11:39 -0700457 key_name: { get_param: key_name }
Gary Wu14a6b302018-05-01 15:59:28 -0700458 networks:
Gary Wu48a32942018-11-08 07:34:49 -0800459 - port: { get_resource: k8s_03_private_port }
Gary Wub7189982018-11-14 10:01:37 -0800460 user_data_format: SOFTWARE_CONFIG
461 user_data: { get_resource: k8s_03_vm_config }
Gary Wu14a6b302018-05-01 15:59:28 -0700462
Gary Wu48a32942018-11-08 07:34:49 -0800463 k8s_04_private_port:
Gary Wu14a6b302018-05-01 15:59:28 -0700464 type: OS::Neutron::Port
465 properties:
466 network: { get_resource: oam_network }
467 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
468 security_groups:
469 - { get_resource: onap_sg }
470
Gary Wu48a32942018-11-08 07:34:49 -0800471 k8s_04_floating_ip:
Gary Wu14a6b302018-05-01 15:59:28 -0700472 type: OS::Neutron::FloatingIP
473 properties:
474 floating_network_id: { get_param: public_net_id }
Gary Wu48a32942018-11-08 07:34:49 -0800475 port_id: { get_resource: k8s_04_private_port }
Gary Wu14a6b302018-05-01 15:59:28 -0700476
Gary Wub7189982018-11-14 10:01:37 -0800477 k8s_04_vm_scripts:
478 type: OS::Heat::CloudConfig
479 properties:
480 cloud_config:
481 power_state:
482 mode: reboot
483 runcmd:
484 - [ /opt/k8s_vm_install.sh ]
485 write_files:
486 - path: /opt/k8s_vm_install.sh
487 permissions: '0755'
488 content:
489 str_replace:
490 params:
491 __docker_proxy__: { get_param: docker_proxy }
492 __apt_proxy__: { get_param: apt_proxy }
493 __docker_version__: { get_param: docker_version }
494 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
495 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
496 __host_private_ip_addr__: { get_attr: [k8s_04_floating_ip, fixed_ip_address] }
Gary Wub8be70a2018-11-17 17:14:38 -0800497 __mtu__: { get_param: mtu }
Gary Wub7189982018-11-14 10:01:37 -0800498 template:
499 get_file: k8s_vm_install.sh
500 - path: /opt/k8s_vm_init.sh
501 permissions: '0755'
502 content:
503 str_replace:
504 params:
505 __host_private_ip_addr__: { get_attr: [k8s_04_floating_ip, fixed_ip_address] }
506 __host_label__: 'compute'
507 template:
508 get_file: k8s_vm_init.sh
509 - path: /etc/init.d/k8s_vm_init_serv
510 permissions: '0755'
511 content:
512 get_file: k8s_vm_init_serv.sh
513
514 k8s_04_vm_config:
515 type: OS::Heat::MultipartMime
516 properties:
517 parts:
518 - config: { get_resource: k8s_04_vm_scripts }
519
Gary Wu48a32942018-11-08 07:34:49 -0800520 k8s_04_vm:
Gary Wu14a6b302018-05-01 15:59:28 -0700521 type: OS::Nova::Server
522 properties:
eHanan97b7a9c2018-09-05 14:09:19 +0100523 name:
Gary Wu48a32942018-11-08 07:34:49 -0800524 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '04' ] ]
Gary Wu14a6b302018-05-01 15:59:28 -0700525 image: { get_param: ubuntu_1604_image }
526 flavor: { get_param: k8s_vm_flavor }
gwu10db4622018-07-17 22:11:39 -0700527 key_name: { get_param: key_name }
Gary Wu14a6b302018-05-01 15:59:28 -0700528 networks:
Gary Wu48a32942018-11-08 07:34:49 -0800529 - port: { get_resource: k8s_04_private_port }
Gary Wub7189982018-11-14 10:01:37 -0800530 user_data_format: SOFTWARE_CONFIG
531 user_data: { get_resource: k8s_04_vm_config }
Gary Wu14a6b302018-05-01 15:59:28 -0700532
Gary Wu48a32942018-11-08 07:34:49 -0800533 k8s_05_private_port:
Gary Wu4d2cfb62018-09-07 09:05:33 -0700534 type: OS::Neutron::Port
535 properties:
536 network: { get_resource: oam_network }
537 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
538 security_groups:
539 - { get_resource: onap_sg }
540
Gary Wu48a32942018-11-08 07:34:49 -0800541 k8s_05_floating_ip:
Gary Wu4d2cfb62018-09-07 09:05:33 -0700542 type: OS::Neutron::FloatingIP
543 properties:
544 floating_network_id: { get_param: public_net_id }
Gary Wu48a32942018-11-08 07:34:49 -0800545 port_id: { get_resource: k8s_05_private_port }
Gary Wu4d2cfb62018-09-07 09:05:33 -0700546
Gary Wub7189982018-11-14 10:01:37 -0800547 k8s_05_vm_scripts:
548 type: OS::Heat::CloudConfig
549 properties:
550 cloud_config:
551 power_state:
552 mode: reboot
553 runcmd:
554 - [ /opt/k8s_vm_install.sh ]
555 write_files:
556 - path: /opt/k8s_vm_install.sh
557 permissions: '0755'
558 content:
559 str_replace:
560 params:
561 __docker_proxy__: { get_param: docker_proxy }
562 __apt_proxy__: { get_param: apt_proxy }
563 __docker_version__: { get_param: docker_version }
564 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
565 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
566 __host_private_ip_addr__: { get_attr: [k8s_05_floating_ip, fixed_ip_address] }
Gary Wub8be70a2018-11-17 17:14:38 -0800567 __mtu__: { get_param: mtu }
Gary Wub7189982018-11-14 10:01:37 -0800568 template:
569 get_file: k8s_vm_install.sh
570 - path: /opt/k8s_vm_init.sh
571 permissions: '0755'
572 content:
573 str_replace:
574 params:
575 __host_private_ip_addr__: { get_attr: [k8s_05_floating_ip, fixed_ip_address] }
576 __host_label__: 'compute'
577 template:
578 get_file: k8s_vm_init.sh
579 - path: /etc/init.d/k8s_vm_init_serv
580 permissions: '0755'
581 content:
582 get_file: k8s_vm_init_serv.sh
583
584 k8s_05_vm_config:
585 type: OS::Heat::MultipartMime
586 properties:
587 parts:
588 - config: { get_resource: k8s_05_vm_scripts }
589
Gary Wu48a32942018-11-08 07:34:49 -0800590 k8s_05_vm:
Gary Wu4d2cfb62018-09-07 09:05:33 -0700591 type: OS::Nova::Server
592 properties:
eHanan97b7a9c2018-09-05 14:09:19 +0100593 name:
Gary Wu48a32942018-11-08 07:34:49 -0800594 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '05' ] ]
Gary Wu4d2cfb62018-09-07 09:05:33 -0700595 image: { get_param: ubuntu_1604_image }
596 flavor: { get_param: k8s_vm_flavor }
597 key_name: { get_param: key_name }
598 networks:
Gary Wu48a32942018-11-08 07:34:49 -0800599 - port: { get_resource: k8s_05_private_port }
Gary Wub7189982018-11-14 10:01:37 -0800600 user_data_format: SOFTWARE_CONFIG
601 user_data: { get_resource: k8s_05_vm_config }
Gary Wu4d2cfb62018-09-07 09:05:33 -0700602
Gary Wu48a32942018-11-08 07:34:49 -0800603 k8s_06_private_port:
Gary Wu0bf673e2018-09-18 08:24:33 -0700604 type: OS::Neutron::Port
605 properties:
606 network: { get_resource: oam_network }
607 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
608 security_groups:
609 - { get_resource: onap_sg }
610
Gary Wu48a32942018-11-08 07:34:49 -0800611 k8s_06_floating_ip:
Gary Wu0bf673e2018-09-18 08:24:33 -0700612 type: OS::Neutron::FloatingIP
613 properties:
614 floating_network_id: { get_param: public_net_id }
Gary Wu48a32942018-11-08 07:34:49 -0800615 port_id: { get_resource: k8s_06_private_port }
Gary Wu0bf673e2018-09-18 08:24:33 -0700616
Gary Wub7189982018-11-14 10:01:37 -0800617 k8s_06_vm_scripts:
618 type: OS::Heat::CloudConfig
619 properties:
620 cloud_config:
621 power_state:
622 mode: reboot
623 runcmd:
624 - [ /opt/k8s_vm_install.sh ]
625 write_files:
626 - path: /opt/k8s_vm_install.sh
627 permissions: '0755'
628 content:
629 str_replace:
630 params:
631 __docker_proxy__: { get_param: docker_proxy }
632 __apt_proxy__: { get_param: apt_proxy }
633 __docker_version__: { get_param: docker_version }
634 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
635 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
636 __host_private_ip_addr__: { get_attr: [k8s_06_floating_ip, fixed_ip_address] }
Gary Wub8be70a2018-11-17 17:14:38 -0800637 __mtu__: { get_param: mtu }
Gary Wub7189982018-11-14 10:01:37 -0800638 template:
639 get_file: k8s_vm_install.sh
640 - path: /opt/k8s_vm_init.sh
641 permissions: '0755'
642 content:
643 str_replace:
644 params:
645 __host_private_ip_addr__: { get_attr: [k8s_06_floating_ip, fixed_ip_address] }
646 __host_label__: 'compute'
647 template:
648 get_file: k8s_vm_init.sh
649 - path: /etc/init.d/k8s_vm_init_serv
650 permissions: '0755'
651 content:
652 get_file: k8s_vm_init_serv.sh
653
654 k8s_06_vm_config:
655 type: OS::Heat::MultipartMime
656 properties:
657 parts:
658 - config: { get_resource: k8s_06_vm_scripts }
659
Gary Wu48a32942018-11-08 07:34:49 -0800660 k8s_06_vm:
Gary Wu0bf673e2018-09-18 08:24:33 -0700661 type: OS::Nova::Server
662 properties:
663 name:
Gary Wu48a32942018-11-08 07:34:49 -0800664 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '06' ] ]
Gary Wu0bf673e2018-09-18 08:24:33 -0700665 image: { get_param: ubuntu_1604_image }
666 flavor: { get_param: k8s_vm_flavor }
667 key_name: { get_param: key_name }
668 networks:
Gary Wu48a32942018-11-08 07:34:49 -0800669 - port: { get_resource: k8s_06_private_port }
Gary Wub7189982018-11-14 10:01:37 -0800670 user_data_format: SOFTWARE_CONFIG
671 user_data: { get_resource: k8s_06_vm_config }
Gary Wu0bf673e2018-09-18 08:24:33 -0700672
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700673 etcd_1_private_port:
Gary Wu61db1be2018-09-25 08:12:33 -0700674 type: OS::Neutron::Port
675 properties:
676 network: { get_resource: oam_network }
677 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
678 security_groups:
679 - { get_resource: onap_sg }
680
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700681 etcd_1_floating_ip:
Gary Wu61db1be2018-09-25 08:12:33 -0700682 type: OS::Neutron::FloatingIP
683 properties:
684 floating_network_id: { get_param: public_net_id }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700685 port_id: { get_resource: etcd_1_private_port }
Gary Wu61db1be2018-09-25 08:12:33 -0700686
Gary Wub7189982018-11-14 10:01:37 -0800687 etcd_1_vm_scripts:
688 type: OS::Heat::CloudConfig
689 properties:
690 cloud_config:
691 power_state:
692 mode: reboot
693 runcmd:
694 - [ /opt/k8s_vm_install.sh ]
695 write_files:
696 - path: /opt/k8s_vm_install.sh
697 permissions: '0755'
698 content:
699 str_replace:
700 params:
701 __docker_proxy__: { get_param: docker_proxy }
702 __apt_proxy__: { get_param: apt_proxy }
703 __docker_version__: { get_param: docker_version }
704 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
705 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
706 __host_private_ip_addr__: { get_attr: [etcd_1_floating_ip, fixed_ip_address] }
Gary Wub8be70a2018-11-17 17:14:38 -0800707 __mtu__: { get_param: mtu }
Gary Wub7189982018-11-14 10:01:37 -0800708 template:
709 get_file: k8s_vm_install.sh
710 - path: /opt/k8s_vm_init.sh
711 permissions: '0755'
712 content:
713 str_replace:
714 params:
715 __host_private_ip_addr__: { get_attr: [etcd_1_floating_ip, fixed_ip_address] }
716 __host_label__: 'etcd'
717 template:
718 get_file: k8s_vm_init.sh
719 - path: /etc/init.d/k8s_vm_init_serv
720 permissions: '0755'
721 content:
722 get_file: k8s_vm_init_serv.sh
723
724 etcd_1_vm_config:
725 type: OS::Heat::MultipartMime
726 properties:
727 parts:
728 - config: { get_resource: etcd_1_vm_scripts }
729
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700730 etcd_1_vm:
Gary Wu61db1be2018-09-25 08:12:33 -0700731 type: OS::Nova::Server
732 properties:
733 name:
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700734 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'etcd', '1' ] ]
Gary Wu61db1be2018-09-25 08:12:33 -0700735 image: { get_param: ubuntu_1604_image }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700736 flavor: { get_param: etcd_vm_flavor }
Gary Wu61db1be2018-09-25 08:12:33 -0700737 key_name: { get_param: key_name }
738 networks:
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700739 - port: { get_resource: etcd_1_private_port }
Gary Wub7189982018-11-14 10:01:37 -0800740 user_data_format: SOFTWARE_CONFIG
741 user_data: { get_resource: etcd_1_vm_config }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700742
743 etcd_2_private_port:
744 type: OS::Neutron::Port
745 properties:
746 network: { get_resource: oam_network }
747 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
748 security_groups:
749 - { get_resource: onap_sg }
750
751 etcd_2_floating_ip:
752 type: OS::Neutron::FloatingIP
753 properties:
754 floating_network_id: { get_param: public_net_id }
755 port_id: { get_resource: etcd_2_private_port }
756
Gary Wub7189982018-11-14 10:01:37 -0800757 etcd_2_vm_scripts:
758 type: OS::Heat::CloudConfig
759 properties:
760 cloud_config:
761 power_state:
762 mode: reboot
763 runcmd:
764 - [ /opt/k8s_vm_install.sh ]
765 write_files:
766 - path: /opt/k8s_vm_install.sh
767 permissions: '0755'
768 content:
769 str_replace:
770 params:
771 __docker_proxy__: { get_param: docker_proxy }
772 __apt_proxy__: { get_param: apt_proxy }
773 __docker_version__: { get_param: docker_version }
774 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
775 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
776 __host_private_ip_addr__: { get_attr: [etcd_2_floating_ip, fixed_ip_address] }
Gary Wub8be70a2018-11-17 17:14:38 -0800777 __mtu__: { get_param: mtu }
Gary Wub7189982018-11-14 10:01:37 -0800778 template:
779 get_file: k8s_vm_install.sh
780 - path: /opt/k8s_vm_init.sh
781 permissions: '0755'
782 content:
783 str_replace:
784 params:
785 __host_private_ip_addr__: { get_attr: [etcd_2_floating_ip, fixed_ip_address] }
786 __host_label__: 'etcd'
787 template:
788 get_file: k8s_vm_init.sh
789 - path: /etc/init.d/k8s_vm_init_serv
790 permissions: '0755'
791 content:
792 get_file: k8s_vm_init_serv.sh
793
794 etcd_2_vm_config:
795 type: OS::Heat::MultipartMime
796 properties:
797 parts:
798 - config: { get_resource: etcd_2_vm_scripts }
799
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700800 etcd_2_vm:
801 type: OS::Nova::Server
802 properties:
803 name:
804 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'etcd', '2' ] ]
805 image: { get_param: ubuntu_1604_image }
806 flavor: { get_param: etcd_vm_flavor }
807 key_name: { get_param: key_name }
808 networks:
809 - port: { get_resource: etcd_2_private_port }
Gary Wub7189982018-11-14 10:01:37 -0800810 user_data_format: SOFTWARE_CONFIG
811 user_data: { get_resource: etcd_2_vm_config }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700812
813 etcd_3_private_port:
814 type: OS::Neutron::Port
815 properties:
816 network: { get_resource: oam_network }
817 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
818 security_groups:
819 - { get_resource: onap_sg }
820
821 etcd_3_floating_ip:
822 type: OS::Neutron::FloatingIP
823 properties:
824 floating_network_id: { get_param: public_net_id }
825 port_id: { get_resource: etcd_3_private_port }
826
Gary Wub7189982018-11-14 10:01:37 -0800827 etcd_3_vm_scripts:
828 type: OS::Heat::CloudConfig
829 properties:
830 cloud_config:
831 power_state:
832 mode: reboot
833 runcmd:
834 - [ /opt/k8s_vm_install.sh ]
835 write_files:
836 - path: /opt/k8s_vm_install.sh
837 permissions: '0755'
838 content:
839 str_replace:
840 params:
841 __docker_proxy__: { get_param: docker_proxy }
842 __apt_proxy__: { get_param: apt_proxy }
843 __docker_version__: { get_param: docker_version }
844 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
845 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
846 __host_private_ip_addr__: { get_attr: [etcd_3_floating_ip, fixed_ip_address] }
Gary Wub8be70a2018-11-17 17:14:38 -0800847 __mtu__: { get_param: mtu }
Gary Wub7189982018-11-14 10:01:37 -0800848 template:
849 get_file: k8s_vm_install.sh
850 - path: /opt/k8s_vm_init.sh
851 permissions: '0755'
852 content:
853 str_replace:
854 params:
855 __host_private_ip_addr__: { get_attr: [etcd_3_floating_ip, fixed_ip_address] }
856 __host_label__: 'etcd'
857 template:
858 get_file: k8s_vm_init.sh
859 - path: /etc/init.d/k8s_vm_init_serv
860 permissions: '0755'
861 content:
862 get_file: k8s_vm_init_serv.sh
863
864 etcd_3_vm_config:
865 type: OS::Heat::MultipartMime
866 properties:
867 parts:
868 - config: { get_resource: etcd_3_vm_scripts }
869
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700870 etcd_3_vm:
871 type: OS::Nova::Server
872 properties:
873 name:
874 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'etcd', '3' ] ]
875 image: { get_param: ubuntu_1604_image }
876 flavor: { get_param: etcd_vm_flavor }
877 key_name: { get_param: key_name }
878 networks:
879 - port: { get_resource: etcd_3_private_port }
Gary Wub7189982018-11-14 10:01:37 -0800880 user_data_format: SOFTWARE_CONFIG
881 user_data: { get_resource: etcd_3_vm_config }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700882
Gary Wu89f67232018-11-01 13:45:31 -0700883 orch_1_private_port:
884 type: OS::Neutron::Port
885 properties:
886 network: { get_resource: oam_network }
887 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
888 security_groups:
889 - { get_resource: onap_sg }
890
891 orch_1_floating_ip:
892 type: OS::Neutron::FloatingIP
893 properties:
894 floating_network_id: { get_param: public_net_id }
895 port_id: { get_resource: orch_1_private_port }
896
Gary Wub7189982018-11-14 10:01:37 -0800897 orch_1_vm_scripts:
898 type: OS::Heat::CloudConfig
899 properties:
900 cloud_config:
901 power_state:
902 mode: reboot
903 runcmd:
904 - [ /opt/k8s_vm_install.sh ]
905 write_files:
906 - path: /opt/k8s_vm_install.sh
907 permissions: '0755'
908 content:
909 str_replace:
910 params:
911 __docker_proxy__: { get_param: docker_proxy }
912 __apt_proxy__: { get_param: apt_proxy }
913 __docker_version__: { get_param: docker_version }
914 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
915 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
916 __host_private_ip_addr__: { get_attr: [orch_1_floating_ip, fixed_ip_address] }
Gary Wub8be70a2018-11-17 17:14:38 -0800917 __mtu__: { get_param: mtu }
Gary Wub7189982018-11-14 10:01:37 -0800918 template:
919 get_file: k8s_vm_install.sh
920 - path: /opt/k8s_vm_init.sh
921 permissions: '0755'
922 content:
923 str_replace:
924 params:
925 __host_private_ip_addr__: { get_attr: [orch_1_floating_ip, fixed_ip_address] }
926 __host_label__: 'orchestration'
927 template:
928 get_file: k8s_vm_init.sh
929 - path: /etc/init.d/k8s_vm_init_serv
930 permissions: '0755'
931 content:
932 get_file: k8s_vm_init_serv.sh
933
934 orch_1_vm_config:
935 type: OS::Heat::MultipartMime
936 properties:
937 parts:
938 - config: { get_resource: orch_1_vm_scripts }
939
Gary Wu89f67232018-11-01 13:45:31 -0700940 orch_1_vm:
941 type: OS::Nova::Server
942 properties:
943 name:
944 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'orch', '1' ] ]
945 image: { get_param: ubuntu_1604_image }
946 flavor: { get_param: orch_vm_flavor }
947 key_name: { get_param: key_name }
948 networks:
949 - port: { get_resource: orch_1_private_port }
Gary Wub7189982018-11-14 10:01:37 -0800950 user_data_format: SOFTWARE_CONFIG
951 user_data: { get_resource: orch_1_vm_config }
Gary Wu89f67232018-11-01 13:45:31 -0700952
Gary Wu6e662012018-11-13 18:41:45 -0800953 orch_2_private_port:
954 type: OS::Neutron::Port
955 properties:
956 network: { get_resource: oam_network }
957 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
958 security_groups:
959 - { get_resource: onap_sg }
960
961 orch_2_floating_ip:
962 type: OS::Neutron::FloatingIP
963 properties:
964 floating_network_id: { get_param: public_net_id }
965 port_id: { get_resource: orch_2_private_port }
966
Gary Wub7189982018-11-14 10:01:37 -0800967 orch_2_vm_scripts:
968 type: OS::Heat::CloudConfig
969 properties:
970 cloud_config:
971 power_state:
972 mode: reboot
973 runcmd:
974 - [ /opt/k8s_vm_install.sh ]
975 write_files:
976 - path: /opt/k8s_vm_install.sh
977 permissions: '0755'
978 content:
979 str_replace:
980 params:
981 __docker_proxy__: { get_param: docker_proxy }
982 __apt_proxy__: { get_param: apt_proxy }
983 __docker_version__: { get_param: docker_version }
984 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
985 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
986 __host_private_ip_addr__: { get_attr: [orch_2_floating_ip, fixed_ip_address] }
Gary Wub8be70a2018-11-17 17:14:38 -0800987 __mtu__: { get_param: mtu }
Gary Wub7189982018-11-14 10:01:37 -0800988 template:
989 get_file: k8s_vm_install.sh
990 - path: /opt/k8s_vm_init.sh
991 permissions: '0755'
992 content:
993 str_replace:
994 params:
995 __host_private_ip_addr__: { get_attr: [orch_2_floating_ip, fixed_ip_address] }
996 __host_label__: 'orchestration'
997 template:
998 get_file: k8s_vm_init.sh
999 - path: /etc/init.d/k8s_vm_init_serv
1000 permissions: '0755'
1001 content:
1002 get_file: k8s_vm_init_serv.sh
1003
1004 orch_2_vm_config:
1005 type: OS::Heat::MultipartMime
1006 properties:
1007 parts:
1008 - config: { get_resource: orch_2_vm_scripts }
1009
Gary Wu6e662012018-11-13 18:41:45 -08001010 orch_2_vm:
1011 type: OS::Nova::Server
1012 properties:
1013 name:
1014 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'orch', '2' ] ]
1015 image: { get_param: ubuntu_1604_image }
1016 flavor: { get_param: orch_vm_flavor }
1017 key_name: { get_param: key_name }
1018 networks:
1019 - port: { get_resource: orch_2_private_port }
Gary Wub7189982018-11-14 10:01:37 -08001020 user_data_format: SOFTWARE_CONFIG
1021 user_data: { get_resource: orch_2_vm_config }
Gary Wu6e662012018-11-13 18:41:45 -08001022
Gary Wu14ee41d2018-01-19 15:03:59 -08001023outputs:
Gary Wu61034082018-01-22 12:48:50 -08001024 rancher_vm_ip:
1025 description: The IP address of the rancher instance
Gary Wu5d325d02018-02-06 21:21:31 -08001026 value: { get_attr: [rancher_floating_ip, floating_ip_address] }
Gary Wu61034082018-01-22 12:48:50 -08001027
Gary Wu48a32942018-11-08 07:34:49 -08001028 k8s_01_vm_ip:
1029 description: The IP address of the k8s_01 instance
1030 value: { get_attr: [k8s_01_floating_ip, floating_ip_address] }
Gary Wu36e42dd2018-05-03 07:29:53 -07001031
Gary Wu48a32942018-11-08 07:34:49 -08001032 k8s_02_vm_ip:
1033 description: The IP address of the k8s_02 instance
1034 value: { get_attr: [k8s_02_floating_ip, floating_ip_address] }
Gary Wu36e42dd2018-05-03 07:29:53 -07001035
Gary Wu48a32942018-11-08 07:34:49 -08001036 k8s_03_vm_ip:
1037 description: The IP address of the k8s_03 instance
1038 value: { get_attr: [k8s_03_floating_ip, floating_ip_address] }
Gary Wu36e42dd2018-05-03 07:29:53 -07001039
Gary Wu48a32942018-11-08 07:34:49 -08001040 k8s_04_vm_ip:
1041 description: The IP address of the k8s_04 instance
1042 value: { get_attr: [k8s_04_floating_ip, floating_ip_address] }
Gary Wu36e42dd2018-05-03 07:29:53 -07001043
Gary Wu48a32942018-11-08 07:34:49 -08001044 k8s_05_vm_ip:
1045 description: The IP address of the k8s_05 instance
1046 value: { get_attr: [k8s_05_floating_ip, floating_ip_address] }
Gary Wu4d2cfb62018-09-07 09:05:33 -07001047
Gary Wu48a32942018-11-08 07:34:49 -08001048 k8s_06_vm_ip:
1049 description: The IP address of the k8s_06 instance
1050 value: { get_attr: [k8s_06_floating_ip, floating_ip_address] }
Gary Wu0bf673e2018-09-18 08:24:33 -07001051