aboutsummaryrefslogtreecommitdiffstats
path: root/undercloud-vlan-port.yaml
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2014-08-29 23:13:00 +0000
committerGerrit Code Review <review@openstack.org>2014-08-29 23:13:00 +0000
commitec7abd73d7debdc887ed552c676db21450d81d81 (patch)
tree05ee381f90c68ae4e69fc046fc40f833cdd4f16a /undercloud-vlan-port.yaml
parent1c7e2c8cd7051398c32a4c9fbd74b90a1e193c59 (diff)
parent91e763f748e098b6c1fc13dc63fb1e612b36a64f (diff)
Merge "Expose public_interface_tag support."
Diffstat (limited to 'undercloud-vlan-port.yaml')
-rw-r--r--undercloud-vlan-port.yaml36
1 files changed, 36 insertions, 0 deletions
diff --git a/undercloud-vlan-port.yaml b/undercloud-vlan-port.yaml
new file mode 100644
index 00000000..8231f49d
--- /dev/null
+++ b/undercloud-vlan-port.yaml
@@ -0,0 +1,36 @@
+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