aboutsummaryrefslogtreecommitdiffstats
path: root/deprecated/overcloud-vlan-port.yaml
blob: 8f6f693748a64f3938468d7e110adaf53e6581b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
outputs:
  controller0PublicIP:
    description: Address for registering endpoints in the cloud.
    value: {get_attr: [controller0_VLANPort, fixed_ips, 0, ip_address]}
resources:
  # Override the main template which can also supply a static route.
  controller0_99_VLANPort:
    type: OS::Heat::StructuredDeployment
    properties:
      config: {get_resource: ControllerVLANPortConfig}
      server: {get_resource: controller0}
      signal_transport: NO_SIGNAL
      input_values:
        vlan_port:
          list_join:
          - '/'
          - - {get_attr: [controller0_VLANPort, fixed_ips, 0, ip_address]}
            # 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 _overcloud.sh for now.
            - '24'
        # Tell the instance to apply the default route.
        # Reinstate when https://bugs.launchpad.net/heat/+bug/1336656 is
        # sorted
        # public_interface_route:
        #   get_attr: [controller0_VLANPort, fixed_ips, 0, subnet, gateway_ip]
  ControllerVLANPortConfig:
    type: OS::Heat::StructuredConfig
    properties:
      config:
        neutron:
          ovs:
            public_interface_tag_ip: {get_input: vlan_port}
  controller0_VLANPort:
    type: OS::Neutron::Port
    properties:
      name: controller0_vlan
      network: public
      replacement_policy: AUTO