2 # Generated by scripts/gen-onap-oom-yaml.sh; MANUAL CHANGES WILL BE LOST
4 heat_template_version: 2015-10-15
5 description: ONAP on Kubernetes using OOM
16 description: The ID of the Public network for floating IP address allocation
20 description: CIDR of the OAM ONAP network
24 description: Name of the Ubuntu 16.04 image
28 description: VM flavor for Rancher
32 description: VM flavor for k8s hosts
34 integration_override_yaml:
36 description: Content for integration_override.yaml
38 integration_gerrit_branch:
42 integration_gerrit_refspec:
44 default: "refs/heads/master"
52 default: "refs/heads/master"
70 rancher_agent_version:
84 type: OS::Heat::RandomString
90 type: OS::Neutron::SecurityGroup
97 rand: { get_resource: random-str }
98 description: security group used by ONAP
110 port_range_max: 65535
113 port_range_max: 65535
116 # ONAP management private network
118 type: OS::Neutron::Net
122 template: oam_network_rand
124 rand: { get_resource: random-str }
127 type: OS::Neutron::Subnet
131 template: oam_network_rand
133 rand: { get_resource: random-str }
134 network_id: { get_resource: oam_network }
135 cidr: { get_param: oam_network_cidr }
136 dns_nameservers: [ "8.8.8.8" ]
139 type: OS::Neutron::Router
141 external_gateway_info:
142 network: { get_param: public_net_id }
145 type: OS::Neutron::RouterInterface
147 router_id: { get_resource: router }
148 subnet_id: { get_resource: oam_subnet }
150 rancher_private_port:
151 type: OS::Neutron::Port
153 network: { get_resource: oam_network }
154 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
156 - { get_resource: onap_sg }
159 type: OS::Neutron::FloatingIP
161 floating_network_id: { get_param: public_net_id }
162 port_id: { get_resource: rancher_private_port }
165 type: OS::Nova::Server
168 image: { get_param: ubuntu_1604_image }
169 flavor: { get_param: rancher_vm_flavor }
170 key_name: { get_param: key_name }
172 - port: { get_resource: rancher_private_port }
173 user_data_format: RAW
177 get_file: rancher_vm_entrypoint.sh
179 __docker_proxy__: { get_param: docker_proxy }
180 __apt_proxy__: { get_param: apt_proxy }
181 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
182 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
183 __integration_override_yaml__: { get_param: integration_override_yaml }
184 __integration_gerrit_branch__: { get_param: integration_gerrit_branch }
185 __integration_gerrit_refspec__: { get_param: integration_gerrit_refspec }
186 __oom_gerrit_branch__: { get_param: oom_gerrit_branch }
187 __oom_gerrit_refspec__: { get_param: oom_gerrit_refspec }
188 __docker_manifest__: { get_param: docker_manifest }
189 __docker_version__: { get_param: docker_version }
190 __rancher_version__: { get_param: rancher_version }
191 __rancher_agent_version__: { get_param: rancher_agent_version }
192 __kubectl_version__: { get_param: kubectl_version }
193 __helm_version__: { get_param: helm_version }
194 __public_net_id__: { get_param: public_net_id }
195 __oam_network_cidr__: { get_param: oam_network_cidr }
196 __oam_network_id__: { get_resource: oam_network }
197 __oam_subnet_id__: { get_resource: oam_subnet }
198 __k8s_1_vm_ip__: { get_attr: [k8s_1_floating_ip, floating_ip_address] }
200 get_attr: [k8s_1_floating_ip, floating_ip_address],
201 get_attr: [k8s_2_floating_ip, floating_ip_address],
202 get_attr: [k8s_3_floating_ip, floating_ip_address],
203 get_attr: [k8s_4_floating_ip, floating_ip_address],
205 __k8s_private_ips__: [
206 get_attr: [k8s_1_floating_ip, fixed_ip_address],
207 get_attr: [k8s_2_floating_ip, fixed_ip_address],
208 get_attr: [k8s_3_floating_ip, fixed_ip_address],
209 get_attr: [k8s_4_floating_ip, fixed_ip_address],
212 type: OS::Neutron::Port
214 network: { get_resource: oam_network }
215 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
217 - { get_resource: onap_sg }
220 type: OS::Neutron::FloatingIP
222 floating_network_id: { get_param: public_net_id }
223 port_id: { get_resource: k8s_1_private_port }
226 type: OS::Nova::Server
229 image: { get_param: ubuntu_1604_image }
230 flavor: { get_param: k8s_vm_flavor }
231 key_name: { get_param: key_name }
233 - port: { get_resource: k8s_1_private_port }
234 user_data_format: RAW
238 __docker_proxy__: { get_param: docker_proxy }
239 __apt_proxy__: { get_param: apt_proxy }
240 __docker_version__: { get_param: docker_version }
241 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
242 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
244 get_file: k8s_vm_entrypoint.sh
247 type: OS::Neutron::Port
249 network: { get_resource: oam_network }
250 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
252 - { get_resource: onap_sg }
255 type: OS::Neutron::FloatingIP
257 floating_network_id: { get_param: public_net_id }
258 port_id: { get_resource: k8s_2_private_port }
261 type: OS::Nova::Server
264 image: { get_param: ubuntu_1604_image }
265 flavor: { get_param: k8s_vm_flavor }
266 key_name: { get_param: key_name }
268 - port: { get_resource: k8s_2_private_port }
269 user_data_format: RAW
273 __docker_proxy__: { get_param: docker_proxy }
274 __apt_proxy__: { get_param: apt_proxy }
275 __docker_version__: { get_param: docker_version }
276 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
277 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
279 get_file: k8s_vm_entrypoint.sh
282 type: OS::Neutron::Port
284 network: { get_resource: oam_network }
285 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
287 - { get_resource: onap_sg }
290 type: OS::Neutron::FloatingIP
292 floating_network_id: { get_param: public_net_id }
293 port_id: { get_resource: k8s_3_private_port }
296 type: OS::Nova::Server
299 image: { get_param: ubuntu_1604_image }
300 flavor: { get_param: k8s_vm_flavor }
301 key_name: { get_param: key_name }
303 - port: { get_resource: k8s_3_private_port }
304 user_data_format: RAW
308 __docker_proxy__: { get_param: docker_proxy }
309 __apt_proxy__: { get_param: apt_proxy }
310 __docker_version__: { get_param: docker_version }
311 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
312 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
314 get_file: k8s_vm_entrypoint.sh
317 type: OS::Neutron::Port
319 network: { get_resource: oam_network }
320 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
322 - { get_resource: onap_sg }
325 type: OS::Neutron::FloatingIP
327 floating_network_id: { get_param: public_net_id }
328 port_id: { get_resource: k8s_4_private_port }
331 type: OS::Nova::Server
334 image: { get_param: ubuntu_1604_image }
335 flavor: { get_param: k8s_vm_flavor }
336 key_name: { get_param: key_name }
338 - port: { get_resource: k8s_4_private_port }
339 user_data_format: RAW
343 __docker_proxy__: { get_param: docker_proxy }
344 __apt_proxy__: { get_param: apt_proxy }
345 __docker_version__: { get_param: docker_version }
346 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
347 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
349 get_file: k8s_vm_entrypoint.sh
353 description: The IP address of the rancher instance
354 value: { get_attr: [rancher_floating_ip, floating_ip_address] }
357 description: The IP address of the k8s_1 instance
358 value: { get_attr: [k8s_1_floating_ip, floating_ip_address] }
361 description: The IP address of the k8s_2 instance
362 value: { get_attr: [k8s_2_floating_ip, floating_ip_address] }
365 description: The IP address of the k8s_3 instance
366 value: { get_attr: [k8s_3_floating_ip, floating_ip_address] }
369 description: The IP address of the k8s_4 instance
370 value: { get_attr: [k8s_4_floating_ip, floating_ip_address] }