91e763f748
Proper VLAN support requires adding the IP address to a new device, rather than br-ex/br-ctlplane. This is added in the tripleo-image-elements change https://review.openstack.org/103449 (I3f77f72ac623792e844dbb4d501b6ab269141f8e) and here we just expose it with appropriate glue to get the IP address from Neutron. With this we can now describe a VLAN public interface scenario to the undercloud and overcloud control planes. Change-Id: I4d2194fc813aebb0708d6fddf4f05bae5f091fd8
37 lines
1.3 KiB
YAML
37 lines
1.3 KiB
YAML
outputs:
|
|
PublicIP:
|
|
description: Address for registering endpoints in the cloud.
|
|
value: {get_attr: [undercloud_VLANPort, fixed_ips, 0, ip_address]}
|
|
resources:
|
|
# Override the main template which can also supply a static route.
|
|
undercloud_99VLANPort:
|
|
type: OS::Heat::StructuredDeployment
|
|
properties:
|
|
config: {get_resource: undercloudVLANPortConfig}
|
|
server: {get_resource: undercloud}
|
|
signal_transport: NO_SIGNAL
|
|
undercloudVLANPortConfig:
|
|
type: OS::Heat::StructuredConfig
|
|
properties:
|
|
config:
|
|
neutron:
|
|
ovs:
|
|
public_interface_tag_ip:
|
|
Fn::Join:
|
|
- '/'
|
|
- - {get_attr: [undercloud_VLANPort, fixed_ips, 0, ip_address]}
|
|
- '24'
|
|
# This should also be pulled out of the subnet. May need a
|
|
# neutron fix too - XXX make into a parameter and feed it
|
|
# in via _undercloud.sh for now.
|
|
# Tell the instance to apply the default route.
|
|
# Reinstate when https://bugs.launchpad.net/heat/+bug/1336656 is
|
|
# sorted
|
|
# public_interface_route:
|
|
# get_attr: [undercloud_VLANPort, fixed_ips, 0, subnet, gateway_ip]
|
|
undercloud_VLANPort:
|
|
type: OS::Neutron::Port
|
|
properties:
|
|
name: undercloud_vlan
|
|
network: public
|