blob: 236437f0bef1dce050e9eea75f52c697bcf2dd85 [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
34 integration_override_yaml:
35 type: string
36 description: Content for integration_override.yaml
Gary Wu60dd0d82018-01-18 14:54:47 -080037
Gary Wu87aa8b52018-08-09 08:10:24 -070038 integration_gerrit_branch:
Gary Wu81836d22018-06-22 13:48:50 -070039 type: string
40 default: "master"
41
Gary Wu87aa8b52018-08-09 08:10:24 -070042 integration_gerrit_refspec:
43 type: string
44 default: "refs/heads/master"
45
46 oom_gerrit_branch:
47 type: string
48 default: "master"
49
50 oom_gerrit_refspec:
Gary Wu81836d22018-06-22 13:48:50 -070051 type: string
52 default: "refs/heads/master"
53
54 docker_manifest:
55 type: string
Gary Wu87aa8b52018-08-09 08:10:24 -070056 default: ""
Gary Wu81836d22018-06-22 13:48:50 -070057
gwu10db4622018-07-17 22:11:39 -070058 key_name:
59 type: string
60 default: "onap_key"
61
Gary Wu7a04b3d2018-08-15 12:31:46 -070062 docker_version:
63 type: string
64 default: "17.03"
65
66 rancher_version:
67 type: string
68 default: "1.6.18"
69
70 rancher_agent_version:
71 type: string
72 default: "1.2.10"
73
74 kubectl_version:
75 type: string
76 default: "1.8.10"
77
78 helm_version:
79 type: string
80 default: "2.9.1"
81
Gary Wuccd529b2018-01-16 18:31:01 -080082resources:
Gary Wuc98156d2018-01-18 12:03:26 -080083 random-str:
84 type: OS::Heat::RandomString
85 properties:
86 length: 4
87
Gary Wubc11e5d2018-02-07 10:23:27 -080088 # ONAP security group
89 onap_sg:
90 type: OS::Neutron::SecurityGroup
91 properties:
92 name:
93 str_replace:
94 template: base_rand
95 params:
96 base: onap_sg
97 rand: { get_resource: random-str }
98 description: security group used by ONAP
99 rules:
100 # All egress traffic
101 - direction: egress
102 ethertype: IPv4
103 - direction: egress
104 ethertype: IPv6
105 # ingress traffic
106 # ICMP
107 - protocol: icmp
108 - protocol: udp
109 port_range_min: 1
110 port_range_max: 65535
111 - protocol: tcp
112 port_range_min: 1
113 port_range_max: 65535
114
115
Gary Wu52dfdcb2018-01-25 11:02:48 -0800116 # ONAP management private network
117 oam_network:
118 type: OS::Neutron::Net
119 properties:
120 name:
121 str_replace:
122 template: oam_network_rand
123 params:
124 rand: { get_resource: random-str }
125
126 oam_subnet:
127 type: OS::Neutron::Subnet
128 properties:
129 name:
130 str_replace:
131 template: oam_network_rand
132 params:
133 rand: { get_resource: random-str }
134 network_id: { get_resource: oam_network }
135 cidr: { get_param: oam_network_cidr }
Gary Wu14a6b302018-05-01 15:59:28 -0700136 dns_nameservers: [ "8.8.8.8" ]
Gary Wu52dfdcb2018-01-25 11:02:48 -0800137
138 router:
139 type: OS::Neutron::Router
140 properties:
eHanan97b7a9c2018-09-05 14:09:19 +0100141 name:
142 list_join: ['-', [{ get_param: 'OS::stack_name' }, 'router']]
Gary Wu52dfdcb2018-01-25 11:02:48 -0800143 external_gateway_info:
144 network: { get_param: public_net_id }
145
146 router_interface:
147 type: OS::Neutron::RouterInterface
148 properties:
149 router_id: { get_resource: router }
150 subnet_id: { get_resource: oam_subnet }
151
Gary Wu374498a2018-02-06 17:31:04 -0800152 rancher_private_port:
153 type: OS::Neutron::Port
154 properties:
155 network: { get_resource: oam_network }
156 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
Gary Wubc11e5d2018-02-07 10:23:27 -0800157 security_groups:
158 - { get_resource: onap_sg }
Gary Wu374498a2018-02-06 17:31:04 -0800159
160 rancher_floating_ip:
161 type: OS::Neutron::FloatingIP
162 properties:
163 floating_network_id: { get_param: public_net_id }
164 port_id: { get_resource: rancher_private_port }
165
Gary Wuccd529b2018-01-16 18:31:01 -0800166 rancher_vm:
167 type: OS::Nova::Server
168 properties:
eHanan97b7a9c2018-09-05 14:09:19 +0100169 name:
170 list_join: ['-', [{ get_param: 'OS::stack_name' }, 'rancher']]
Gary Wu558ac6e2018-01-19 14:53:12 -0800171 image: { get_param: ubuntu_1604_image }
Gary Wu60dd0d82018-01-18 14:54:47 -0800172 flavor: { get_param: rancher_vm_flavor }
gwu10db4622018-07-17 22:11:39 -0700173 key_name: { get_param: key_name }
Gary Wuccd529b2018-01-16 18:31:01 -0800174 networks:
Gary Wu374498a2018-02-06 17:31:04 -0800175 - port: { get_resource: rancher_private_port }
Gary Wuccd529b2018-01-16 18:31:01 -0800176 user_data_format: RAW
177 user_data:
178 str_replace:
Gary Wu1ff56672018-01-17 20:51:45 -0800179 template:
180 get_file: rancher_vm_entrypoint.sh
Gary Wu14a6b302018-05-01 15:59:28 -0700181 params:
Gary Wu14a6b302018-05-01 15:59:28 -0700182 __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] }
Gary Wuad513722018-07-26 13:08:47 -0700185 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu11c98742018-05-02 16:19:04 -0700186 __integration_override_yaml__: { get_param: integration_override_yaml }
Gary Wu87aa8b52018-08-09 08:10:24 -0700187 __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 }
Gary Wu81836d22018-06-22 13:48:50 -0700191 __docker_manifest__: { get_param: docker_manifest }
Gary Wu7a04b3d2018-08-15 12:31:46 -0700192 __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 }
Gary Wu978171e2018-07-24 11:56:01 -0700197 __public_net_id__: { get_param: public_net_id }
198 __oam_network_cidr__: { get_param: oam_network_cidr }
Gary Wu11c98742018-05-02 16:19:04 -0700199 __oam_network_id__: { get_resource: oam_network }
200 __oam_subnet_id__: { get_resource: oam_subnet }
Gary Wu0a671622018-05-14 12:59:03 -0700201 __k8s_1_vm_ip__: { get_attr: [k8s_1_floating_ip, floating_ip_address] }
Gary Wu14a6b302018-05-01 15:59:28 -0700202 __k8s_vm_ips__: [
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],
Gary Wu4d2cfb62018-09-07 09:05:33 -0700207 get_attr: [k8s_5_floating_ip, floating_ip_address],
Gary Wu0bf673e2018-09-18 08:24:33 -0700208 get_attr: [k8s_6_floating_ip, floating_ip_address],
Gary Wudc2351b2018-09-24 13:37:53 -0700209 get_attr: [k8s_7_floating_ip, floating_ip_address],
210 get_attr: [k8s_8_floating_ip, floating_ip_address],
211 get_attr: [k8s_9_floating_ip, floating_ip_address],
212 get_attr: [k8s_10_floating_ip, floating_ip_address],
213 get_attr: [k8s_11_floating_ip, floating_ip_address],
Gary Wu61db1be2018-09-25 08:12:33 -0700214 get_attr: [k8s_12_floating_ip, floating_ip_address],
215 get_attr: [k8s_13_floating_ip, floating_ip_address],
Gary Wu14a6b302018-05-01 15:59:28 -0700216 ]
Gary Wuad513722018-07-26 13:08:47 -0700217 __k8s_private_ips__: [
218 get_attr: [k8s_1_floating_ip, fixed_ip_address],
219 get_attr: [k8s_2_floating_ip, fixed_ip_address],
220 get_attr: [k8s_3_floating_ip, fixed_ip_address],
221 get_attr: [k8s_4_floating_ip, fixed_ip_address],
Gary Wu4d2cfb62018-09-07 09:05:33 -0700222 get_attr: [k8s_5_floating_ip, fixed_ip_address],
Gary Wu0bf673e2018-09-18 08:24:33 -0700223 get_attr: [k8s_6_floating_ip, fixed_ip_address],
Gary Wudc2351b2018-09-24 13:37:53 -0700224 get_attr: [k8s_7_floating_ip, fixed_ip_address],
225 get_attr: [k8s_8_floating_ip, fixed_ip_address],
226 get_attr: [k8s_9_floating_ip, fixed_ip_address],
227 get_attr: [k8s_10_floating_ip, fixed_ip_address],
228 get_attr: [k8s_11_floating_ip, fixed_ip_address],
Gary Wu61db1be2018-09-25 08:12:33 -0700229 get_attr: [k8s_12_floating_ip, fixed_ip_address],
230 get_attr: [k8s_13_floating_ip, fixed_ip_address],
Gary Wuad513722018-07-26 13:08:47 -0700231 ]
Gary Wu14a6b302018-05-01 15:59:28 -0700232 k8s_1_private_port:
Gary Wu52dfdcb2018-01-25 11:02:48 -0800233 type: OS::Neutron::Port
234 properties:
235 network: { get_resource: oam_network }
236 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
Gary Wubc11e5d2018-02-07 10:23:27 -0800237 security_groups:
238 - { get_resource: onap_sg }
Gary Wu52dfdcb2018-01-25 11:02:48 -0800239
Gary Wu14a6b302018-05-01 15:59:28 -0700240 k8s_1_floating_ip:
Gary Wu52dfdcb2018-01-25 11:02:48 -0800241 type: OS::Neutron::FloatingIP
242 properties:
243 floating_network_id: { get_param: public_net_id }
Gary Wu14a6b302018-05-01 15:59:28 -0700244 port_id: { get_resource: k8s_1_private_port }
Gary Wu52dfdcb2018-01-25 11:02:48 -0800245
Gary Wu14a6b302018-05-01 15:59:28 -0700246 k8s_1_vm:
Gary Wuccd529b2018-01-16 18:31:01 -0800247 type: OS::Nova::Server
248 properties:
eHanan97b7a9c2018-09-05 14:09:19 +0100249 name:
250 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s_1']]
Gary Wu558ac6e2018-01-19 14:53:12 -0800251 image: { get_param: ubuntu_1604_image }
Gary Wu60dd0d82018-01-18 14:54:47 -0800252 flavor: { get_param: k8s_vm_flavor }
gwu10db4622018-07-17 22:11:39 -0700253 key_name: { get_param: key_name }
Gary Wuccd529b2018-01-16 18:31:01 -0800254 networks:
Gary Wu14a6b302018-05-01 15:59:28 -0700255 - port: { get_resource: k8s_1_private_port }
Gary Wuccd529b2018-01-16 18:31:01 -0800256 user_data_format: RAW
257 user_data:
258 str_replace:
259 params:
260 __docker_proxy__: { get_param: docker_proxy }
261 __apt_proxy__: { get_param: apt_proxy }
Gary Wu7a04b3d2018-08-15 12:31:46 -0700262 __docker_version__: { get_param: docker_version }
Gary Wu5d325d02018-02-06 21:21:31 -0800263 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
Gary Wuad513722018-07-26 13:08:47 -0700264 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu14a6b302018-05-01 15:59:28 -0700265 template:
266 get_file: k8s_vm_entrypoint.sh
267
268 k8s_2_private_port:
269 type: OS::Neutron::Port
270 properties:
271 network: { get_resource: oam_network }
272 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
273 security_groups:
274 - { get_resource: onap_sg }
275
276 k8s_2_floating_ip:
277 type: OS::Neutron::FloatingIP
278 properties:
279 floating_network_id: { get_param: public_net_id }
280 port_id: { get_resource: k8s_2_private_port }
281
282 k8s_2_vm:
283 type: OS::Nova::Server
284 properties:
eHanan97b7a9c2018-09-05 14:09:19 +0100285 name:
286 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s_2']]
Gary Wu14a6b302018-05-01 15:59:28 -0700287 image: { get_param: ubuntu_1604_image }
288 flavor: { get_param: k8s_vm_flavor }
gwu10db4622018-07-17 22:11:39 -0700289 key_name: { get_param: key_name }
Gary Wu14a6b302018-05-01 15:59:28 -0700290 networks:
291 - port: { get_resource: k8s_2_private_port }
292 user_data_format: RAW
293 user_data:
294 str_replace:
295 params:
Gary Wu14a6b302018-05-01 15:59:28 -0700296 __docker_proxy__: { get_param: docker_proxy }
297 __apt_proxy__: { get_param: apt_proxy }
Gary Wu7a04b3d2018-08-15 12:31:46 -0700298 __docker_version__: { get_param: docker_version }
Gary Wu14a6b302018-05-01 15:59:28 -0700299 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
Gary Wuad513722018-07-26 13:08:47 -0700300 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu14a6b302018-05-01 15:59:28 -0700301 template:
302 get_file: k8s_vm_entrypoint.sh
303
304 k8s_3_private_port:
305 type: OS::Neutron::Port
306 properties:
307 network: { get_resource: oam_network }
308 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
309 security_groups:
310 - { get_resource: onap_sg }
311
312 k8s_3_floating_ip:
313 type: OS::Neutron::FloatingIP
314 properties:
315 floating_network_id: { get_param: public_net_id }
316 port_id: { get_resource: k8s_3_private_port }
317
318 k8s_3_vm:
319 type: OS::Nova::Server
320 properties:
eHanan97b7a9c2018-09-05 14:09:19 +0100321 name:
322 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s_3']]
Gary Wu14a6b302018-05-01 15:59:28 -0700323 image: { get_param: ubuntu_1604_image }
324 flavor: { get_param: k8s_vm_flavor }
gwu10db4622018-07-17 22:11:39 -0700325 key_name: { get_param: key_name }
Gary Wu14a6b302018-05-01 15:59:28 -0700326 networks:
327 - port: { get_resource: k8s_3_private_port }
328 user_data_format: RAW
329 user_data:
330 str_replace:
331 params:
Gary Wu14a6b302018-05-01 15:59:28 -0700332 __docker_proxy__: { get_param: docker_proxy }
333 __apt_proxy__: { get_param: apt_proxy }
Gary Wu7a04b3d2018-08-15 12:31:46 -0700334 __docker_version__: { get_param: docker_version }
Gary Wu14a6b302018-05-01 15:59:28 -0700335 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
Gary Wuad513722018-07-26 13:08:47 -0700336 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu14a6b302018-05-01 15:59:28 -0700337 template:
338 get_file: k8s_vm_entrypoint.sh
339
340 k8s_4_private_port:
341 type: OS::Neutron::Port
342 properties:
343 network: { get_resource: oam_network }
344 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
345 security_groups:
346 - { get_resource: onap_sg }
347
348 k8s_4_floating_ip:
349 type: OS::Neutron::FloatingIP
350 properties:
351 floating_network_id: { get_param: public_net_id }
352 port_id: { get_resource: k8s_4_private_port }
353
354 k8s_4_vm:
355 type: OS::Nova::Server
356 properties:
eHanan97b7a9c2018-09-05 14:09:19 +0100357 name:
358 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s_4']]
Gary Wu14a6b302018-05-01 15:59:28 -0700359 image: { get_param: ubuntu_1604_image }
360 flavor: { get_param: k8s_vm_flavor }
gwu10db4622018-07-17 22:11:39 -0700361 key_name: { get_param: key_name }
Gary Wu14a6b302018-05-01 15:59:28 -0700362 networks:
363 - port: { get_resource: k8s_4_private_port }
364 user_data_format: RAW
365 user_data:
366 str_replace:
367 params:
Gary Wu14a6b302018-05-01 15:59:28 -0700368 __docker_proxy__: { get_param: docker_proxy }
369 __apt_proxy__: { get_param: apt_proxy }
Gary Wu7a04b3d2018-08-15 12:31:46 -0700370 __docker_version__: { get_param: docker_version }
Gary Wu14a6b302018-05-01 15:59:28 -0700371 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
Gary Wuad513722018-07-26 13:08:47 -0700372 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu14a6b302018-05-01 15:59:28 -0700373 template:
374 get_file: k8s_vm_entrypoint.sh
375
Gary Wu4d2cfb62018-09-07 09:05:33 -0700376 k8s_5_private_port:
377 type: OS::Neutron::Port
378 properties:
379 network: { get_resource: oam_network }
380 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
381 security_groups:
382 - { get_resource: onap_sg }
383
384 k8s_5_floating_ip:
385 type: OS::Neutron::FloatingIP
386 properties:
387 floating_network_id: { get_param: public_net_id }
388 port_id: { get_resource: k8s_5_private_port }
389
390 k8s_5_vm:
391 type: OS::Nova::Server
392 properties:
eHanan97b7a9c2018-09-05 14:09:19 +0100393 name:
394 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s_5']]
Gary Wu4d2cfb62018-09-07 09:05:33 -0700395 image: { get_param: ubuntu_1604_image }
396 flavor: { get_param: k8s_vm_flavor }
397 key_name: { get_param: key_name }
398 networks:
399 - port: { get_resource: k8s_5_private_port }
400 user_data_format: RAW
401 user_data:
402 str_replace:
403 params:
404 __docker_proxy__: { get_param: docker_proxy }
405 __apt_proxy__: { get_param: apt_proxy }
406 __docker_version__: { get_param: docker_version }
407 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
408 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
409 template:
410 get_file: k8s_vm_entrypoint.sh
411
Gary Wu0bf673e2018-09-18 08:24:33 -0700412 k8s_6_private_port:
413 type: OS::Neutron::Port
414 properties:
415 network: { get_resource: oam_network }
416 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
417 security_groups:
418 - { get_resource: onap_sg }
419
420 k8s_6_floating_ip:
421 type: OS::Neutron::FloatingIP
422 properties:
423 floating_network_id: { get_param: public_net_id }
424 port_id: { get_resource: k8s_6_private_port }
425
426 k8s_6_vm:
427 type: OS::Nova::Server
428 properties:
429 name:
430 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s_6']]
431 image: { get_param: ubuntu_1604_image }
432 flavor: { get_param: k8s_vm_flavor }
433 key_name: { get_param: key_name }
434 networks:
435 - port: { get_resource: k8s_6_private_port }
436 user_data_format: RAW
437 user_data:
438 str_replace:
439 params:
440 __docker_proxy__: { get_param: docker_proxy }
441 __apt_proxy__: { get_param: apt_proxy }
442 __docker_version__: { get_param: docker_version }
443 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
444 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
445 template:
446 get_file: k8s_vm_entrypoint.sh
447
Gary Wudc2351b2018-09-24 13:37:53 -0700448 k8s_7_private_port:
449 type: OS::Neutron::Port
450 properties:
451 network: { get_resource: oam_network }
452 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
453 security_groups:
454 - { get_resource: onap_sg }
455
456 k8s_7_floating_ip:
457 type: OS::Neutron::FloatingIP
458 properties:
459 floating_network_id: { get_param: public_net_id }
460 port_id: { get_resource: k8s_7_private_port }
461
462 k8s_7_vm:
463 type: OS::Nova::Server
464 properties:
465 name:
466 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s_7']]
467 image: { get_param: ubuntu_1604_image }
468 flavor: { get_param: k8s_vm_flavor }
469 key_name: { get_param: key_name }
470 networks:
471 - port: { get_resource: k8s_7_private_port }
472 user_data_format: RAW
473 user_data:
474 str_replace:
475 params:
476 __docker_proxy__: { get_param: docker_proxy }
477 __apt_proxy__: { get_param: apt_proxy }
478 __docker_version__: { get_param: docker_version }
479 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
480 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
481 template:
482 get_file: k8s_vm_entrypoint.sh
483
484 k8s_8_private_port:
485 type: OS::Neutron::Port
486 properties:
487 network: { get_resource: oam_network }
488 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
489 security_groups:
490 - { get_resource: onap_sg }
491
492 k8s_8_floating_ip:
493 type: OS::Neutron::FloatingIP
494 properties:
495 floating_network_id: { get_param: public_net_id }
496 port_id: { get_resource: k8s_8_private_port }
497
498 k8s_8_vm:
499 type: OS::Nova::Server
500 properties:
501 name:
502 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s_8']]
503 image: { get_param: ubuntu_1604_image }
504 flavor: { get_param: k8s_vm_flavor }
505 key_name: { get_param: key_name }
506 networks:
507 - port: { get_resource: k8s_8_private_port }
508 user_data_format: RAW
509 user_data:
510 str_replace:
511 params:
512 __docker_proxy__: { get_param: docker_proxy }
513 __apt_proxy__: { get_param: apt_proxy }
514 __docker_version__: { get_param: docker_version }
515 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
516 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
517 template:
518 get_file: k8s_vm_entrypoint.sh
519
520 k8s_9_private_port:
521 type: OS::Neutron::Port
522 properties:
523 network: { get_resource: oam_network }
524 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
525 security_groups:
526 - { get_resource: onap_sg }
527
528 k8s_9_floating_ip:
529 type: OS::Neutron::FloatingIP
530 properties:
531 floating_network_id: { get_param: public_net_id }
532 port_id: { get_resource: k8s_9_private_port }
533
534 k8s_9_vm:
535 type: OS::Nova::Server
536 properties:
537 name:
538 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s_9']]
539 image: { get_param: ubuntu_1604_image }
540 flavor: { get_param: k8s_vm_flavor }
541 key_name: { get_param: key_name }
542 networks:
543 - port: { get_resource: k8s_9_private_port }
544 user_data_format: RAW
545 user_data:
546 str_replace:
547 params:
548 __docker_proxy__: { get_param: docker_proxy }
549 __apt_proxy__: { get_param: apt_proxy }
550 __docker_version__: { get_param: docker_version }
551 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
552 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
553 template:
554 get_file: k8s_vm_entrypoint.sh
555
556 k8s_10_private_port:
557 type: OS::Neutron::Port
558 properties:
559 network: { get_resource: oam_network }
560 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
561 security_groups:
562 - { get_resource: onap_sg }
563
564 k8s_10_floating_ip:
565 type: OS::Neutron::FloatingIP
566 properties:
567 floating_network_id: { get_param: public_net_id }
568 port_id: { get_resource: k8s_10_private_port }
569
570 k8s_10_vm:
571 type: OS::Nova::Server
572 properties:
573 name:
574 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s_10']]
575 image: { get_param: ubuntu_1604_image }
576 flavor: { get_param: k8s_vm_flavor }
577 key_name: { get_param: key_name }
578 networks:
579 - port: { get_resource: k8s_10_private_port }
580 user_data_format: RAW
581 user_data:
582 str_replace:
583 params:
584 __docker_proxy__: { get_param: docker_proxy }
585 __apt_proxy__: { get_param: apt_proxy }
586 __docker_version__: { get_param: docker_version }
587 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
588 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
589 template:
590 get_file: k8s_vm_entrypoint.sh
591
592 k8s_11_private_port:
593 type: OS::Neutron::Port
594 properties:
595 network: { get_resource: oam_network }
596 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
597 security_groups:
598 - { get_resource: onap_sg }
599
600 k8s_11_floating_ip:
601 type: OS::Neutron::FloatingIP
602 properties:
603 floating_network_id: { get_param: public_net_id }
604 port_id: { get_resource: k8s_11_private_port }
605
606 k8s_11_vm:
607 type: OS::Nova::Server
608 properties:
609 name:
610 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s_11']]
611 image: { get_param: ubuntu_1604_image }
612 flavor: { get_param: k8s_vm_flavor }
613 key_name: { get_param: key_name }
614 networks:
615 - port: { get_resource: k8s_11_private_port }
616 user_data_format: RAW
617 user_data:
618 str_replace:
619 params:
620 __docker_proxy__: { get_param: docker_proxy }
621 __apt_proxy__: { get_param: apt_proxy }
622 __docker_version__: { get_param: docker_version }
623 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
624 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
625 template:
626 get_file: k8s_vm_entrypoint.sh
627
Gary Wu61db1be2018-09-25 08:12:33 -0700628 k8s_12_private_port:
629 type: OS::Neutron::Port
630 properties:
631 network: { get_resource: oam_network }
632 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
633 security_groups:
634 - { get_resource: onap_sg }
635
636 k8s_12_floating_ip:
637 type: OS::Neutron::FloatingIP
638 properties:
639 floating_network_id: { get_param: public_net_id }
640 port_id: { get_resource: k8s_12_private_port }
641
642 k8s_12_vm:
643 type: OS::Nova::Server
644 properties:
645 name:
646 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s_12']]
647 image: { get_param: ubuntu_1604_image }
648 flavor: { get_param: k8s_vm_flavor }
649 key_name: { get_param: key_name }
650 networks:
651 - port: { get_resource: k8s_12_private_port }
652 user_data_format: RAW
653 user_data:
654 str_replace:
655 params:
656 __docker_proxy__: { get_param: docker_proxy }
657 __apt_proxy__: { get_param: apt_proxy }
658 __docker_version__: { get_param: docker_version }
659 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
660 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
661 template:
662 get_file: k8s_vm_entrypoint.sh
663
664 k8s_13_private_port:
665 type: OS::Neutron::Port
666 properties:
667 network: { get_resource: oam_network }
668 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
669 security_groups:
670 - { get_resource: onap_sg }
671
672 k8s_13_floating_ip:
673 type: OS::Neutron::FloatingIP
674 properties:
675 floating_network_id: { get_param: public_net_id }
676 port_id: { get_resource: k8s_13_private_port }
677
678 k8s_13_vm:
679 type: OS::Nova::Server
680 properties:
681 name:
682 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s_13']]
683 image: { get_param: ubuntu_1604_image }
684 flavor: { get_param: k8s_vm_flavor }
685 key_name: { get_param: key_name }
686 networks:
687 - port: { get_resource: k8s_13_private_port }
688 user_data_format: RAW
689 user_data:
690 str_replace:
691 params:
692 __docker_proxy__: { get_param: docker_proxy }
693 __apt_proxy__: { get_param: apt_proxy }
694 __docker_version__: { get_param: docker_version }
695 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
696 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
697 template:
698 get_file: k8s_vm_entrypoint.sh
699
Gary Wu14ee41d2018-01-19 15:03:59 -0800700outputs:
Gary Wu61034082018-01-22 12:48:50 -0800701 rancher_vm_ip:
702 description: The IP address of the rancher instance
Gary Wu5d325d02018-02-06 21:21:31 -0800703 value: { get_attr: [rancher_floating_ip, floating_ip_address] }
Gary Wu61034082018-01-22 12:48:50 -0800704
Gary Wu36e42dd2018-05-03 07:29:53 -0700705 k8s_1_vm_ip:
706 description: The IP address of the k8s_1 instance
707 value: { get_attr: [k8s_1_floating_ip, floating_ip_address] }
708
709 k8s_2_vm_ip:
710 description: The IP address of the k8s_2 instance
711 value: { get_attr: [k8s_2_floating_ip, floating_ip_address] }
712
713 k8s_3_vm_ip:
714 description: The IP address of the k8s_3 instance
715 value: { get_attr: [k8s_3_floating_ip, floating_ip_address] }
716
717 k8s_4_vm_ip:
718 description: The IP address of the k8s_4 instance
719 value: { get_attr: [k8s_4_floating_ip, floating_ip_address] }
720
Gary Wu4d2cfb62018-09-07 09:05:33 -0700721 k8s_5_vm_ip:
722 description: The IP address of the k8s_5 instance
723 value: { get_attr: [k8s_5_floating_ip, floating_ip_address] }
724
Gary Wu0bf673e2018-09-18 08:24:33 -0700725 k8s_6_vm_ip:
726 description: The IP address of the k8s_6 instance
727 value: { get_attr: [k8s_6_floating_ip, floating_ip_address] }
728
Gary Wudc2351b2018-09-24 13:37:53 -0700729 k8s_7_vm_ip:
730 description: The IP address of the k8s_7 instance
731 value: { get_attr: [k8s_7_floating_ip, floating_ip_address] }
732
733 k8s_8_vm_ip:
734 description: The IP address of the k8s_8 instance
735 value: { get_attr: [k8s_8_floating_ip, floating_ip_address] }
736
737 k8s_9_vm_ip:
738 description: The IP address of the k8s_9 instance
739 value: { get_attr: [k8s_9_floating_ip, floating_ip_address] }
740
741 k8s_10_vm_ip:
742 description: The IP address of the k8s_10 instance
743 value: { get_attr: [k8s_10_floating_ip, floating_ip_address] }
744
745 k8s_11_vm_ip:
746 description: The IP address of the k8s_11 instance
747 value: { get_attr: [k8s_11_floating_ip, floating_ip_address] }
748
Gary Wu61db1be2018-09-25 08:12:33 -0700749 k8s_12_vm_ip:
750 description: The IP address of the k8s_12 instance
751 value: { get_attr: [k8s_12_floating_ip, floating_ip_address] }
752
753 k8s_13_vm_ip:
754 description: The IP address of the k8s_13 instance
755 value: { get_attr: [k8s_13_floating_ip, floating_ip_address] }
756