Merge "Ensures mongodb configuration only happens if mongodb is needed"
[apex-tripleo-heat-templates.git] / network / ports / external.yaml
1 heat_template_version: 2015-04-30
2
3 description: >
4   Creates a port on the external network.
5
6 parameters:
7   ExternalNetName:
8     description: Name of the external neutron network
9     default: external
10     type: string
11   ControlPlaneIP: # Here for compatability with noop.yaml
12     description: IP address on the control plane
13     type: string
14
15 resources:
16
17   ExternalPort:
18     type: OS::Neutron::Port
19     properties:
20       network: {get_param: ExternalNetName}
21       replacement_policy: AUTO
22
23 outputs:
24   ip_address:
25     description: external network IP
26     value: {get_attr: [ExternalPort, fixed_ips, 0, ip_address]}
27   ip_subnet:
28     # FIXME: this assumes a 2 digit subnet CIDR (need more heat functions?)
29     description: IP/Subnet CIDR for the external network IP
30     value:
31           list_join:
32             - ''
33             - - {get_attr: [ExternalPort, fixed_ips, 0, ip_address]}
34               - '/'
35               - {get_attr: [ExternalPort, subnets, 0, cidr, -2]}
36               - {get_attr: [ExternalPort, subnets, 0, cidr, -1]}