Merge "Ensures mongodb configuration only happens if mongodb is needed"
[apex-tripleo-heat-templates.git] / network / ports / internal_api.yaml
1 heat_template_version: 2015-04-30
2
3 description: >
4   Creates a port on the internal_api network.
5
6 parameters:
7   InternalApiNetName:
8     description: Name of the internal API neutron network
9     default: internal_api
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   InternalApiPort:
18     type: OS::Neutron::Port
19     properties:
20       network: {get_param: InternalApiNetName}
21       replacement_policy: AUTO
22
23 outputs:
24   ip_address:
25     description: internal API network IP
26     value: {get_attr: [InternalApiPort, 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 internal API network IP
30     value:
31           list_join:
32             - ''
33             - - {get_attr: [InternalApiPort, fixed_ips, 0, ip_address]}
34               - '/'
35               - {get_attr: [InternalApiPort, subnets, 0, cidr, -2]}
36               - {get_attr: [InternalApiPort, subnets, 0, cidr, -1]}