Parameterize network type and tunnel types
[apex-tripleo-heat-templates.git] / overcloud-vlan-port.yaml
1 outputs:
2   controller0PublicIP:
3     description: Address for registering endpoints in the cloud.
4     value: {get_attr: [controller0_VLANPort, fixed_ips, 0, ip_address]}
5 resources:
6   # Override the main template which can also supply a static route.
7   controller0_99_VLANPort:
8     type: OS::Heat::StructuredDeployment
9     properties:
10       config: {get_resource: ControllerVLANPortConfig}
11       server: {get_resource: controller0}
12       signal_transport: NO_SIGNAL
13       input_values:
14         vlan_port:
15           list_join:
16           - '/'
17           - - {get_attr: [controller0_VLANPort, fixed_ips, 0, ip_address]}
18             # This should also be pulled out of the subnet. May need a
19             # neutron fix too - XXX make into a parameter and feed it
20             # in via _overcloud.sh for now.
21             - '24'
22         # Tell the instance to apply the default route.
23         # Reinstate when https://bugs.launchpad.net/heat/+bug/1336656 is
24         # sorted
25         # public_interface_route:
26         #   get_attr: [controller0_VLANPort, fixed_ips, 0, subnet, gateway_ip]
27   ControllerVLANPortConfig:
28     type: OS::Heat::StructuredConfig
29     properties:
30       config:
31         neutron:
32           ovs:
33             public_interface_tag_ip: {get_input: vlan_port}
34   controller0_VLANPort:
35     type: OS::Neutron::Port
36     properties:
37       name: controller0_vlan
38       network: public