Add undercloud public IP to quintupleo output

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
This commit is contained in:
Harald Jensås 2020-05-26 12:06:40 +02:00
parent 7000097d2e
commit dad3208384
3 changed files with 12 additions and 0 deletions

View File

@ -196,6 +196,10 @@ outputs:
description: "ip of the undercloud instance on the private network"
value:
get_attr: [undercloud_env, undercloud_host_private_ip]
undercloud_host_public_ip:
description: "ip of the undercloud instance on the public network"
value:
get_attr: [undercloud_env, undercloud_host_public_ip]
network_environment_data:
description: "Network environment data, router addresses etc."
value:

View File

@ -70,3 +70,8 @@ outputs:
- {port: {get_resource: private_undercloud_port}}
- {port: {get_resource: provision_undercloud_port}}
- {port: {get_resource: public_undercloud_port}}
addresses:
value:
private_undercloud: {get_attr: [private_undercloud_port, fixed_ips, 0, ip_address]}
provision_undercloud: {get_attr: [provision_undercloud_port, fixed_ips, 0, ip_address]}
public_undercloud: {get_attr: [public_undercloud_port, fixed_ips, 0, ip_address]}

View File

@ -65,3 +65,6 @@ outputs:
- {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]}