dad3208384
Add the public IP of the undercloud to the stack output so that it's easily available to configure the public interface on the undercloud with the correct IP statically. Change-Id: I90ad37cc683f1640464eb7b2ccfb3ba5d107f259 Related-Bug: #1874418
71 lines
1.8 KiB
YAML
71 lines
1.8 KiB
YAML
heat_template_version: 2015-04-30
|
|
|
|
parameters:
|
|
undercloud_flavor:
|
|
type: string
|
|
undercloud_image:
|
|
type: string
|
|
key_name:
|
|
type: string
|
|
undercloud_name:
|
|
type: string
|
|
undercloud_user_data_format:
|
|
type: string
|
|
undercloud_user_data:
|
|
type: string
|
|
private_net:
|
|
type: string
|
|
networks:
|
|
type: json
|
|
external_net:
|
|
type: string
|
|
|
|
resources:
|
|
undercloud_ports:
|
|
type: OS::OVB::UndercloudPorts
|
|
properties:
|
|
undercloud_name: {get_param: undercloud_name}
|
|
private_net: {get_param: private_net}
|
|
networks: {get_param: networks}
|
|
|
|
undercloud_server:
|
|
type: OS::Nova::Server
|
|
properties:
|
|
flavor: {get_param: undercloud_flavor}
|
|
image: {get_param: undercloud_image}
|
|
key_name: {get_param: key_name}
|
|
networks: {get_attr: [undercloud_ports, ports]}
|
|
name: {get_param: undercloud_name}
|
|
user_data_format: {get_param: undercloud_user_data_format}
|
|
user_data: {get_param: undercloud_user_data}
|
|
|
|
undercloud_floating_ip:
|
|
type: OS::OVB::UndercloudFloating
|
|
properties:
|
|
external_net: {get_param: external_net}
|
|
undercloud_port:
|
|
get_attr:
|
|
- undercloud_server
|
|
- addresses
|
|
- {get_param: private_net}
|
|
- 0
|
|
- port
|
|
|
|
outputs:
|
|
undercloud_host_floating_ip:
|
|
description: "floating ip of the undercloud instance"
|
|
value:
|
|
get_attr: [undercloud_floating_ip, undercloud_host]
|
|
undercloud_host_private_ip:
|
|
description: "ip of the undercloud instance on the private network"
|
|
value:
|
|
get_attr:
|
|
- undercloud_server
|
|
- addresses
|
|
- {get_param: private_net}
|
|
- 0
|
|
- addr
|
|
undercloud_host_public_ip:
|
|
description: "ip of the undercloud instance on the public network"
|
|
value: {get_attr: [undercloud_ports, addresses, public_undercloud]}
|