Merge "Add Keystone as Pacemaker resource"
[apex-tripleo-heat-templates.git] / network / ports / tenant.yaml
1 heat_template_version: 2015-04-30
2
3 description: >
4   Creates a port on the tenant network.
5
6 parameters:
7   TenantNetName:
8     description: Name of the tenant neutron network
9     default: tenant
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   TenantPort:
18     type: OS::Neutron::Port
19     properties:
20       network: {get_param: TenantNetName}
21       replacement_policy: AUTO
22
23 outputs:
24   ip_address:
25     description: tenant network IP
26     value: {get_attr: [TenantPort, 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 tenant network IP
30     value:
31           list_join:
32             - ''
33             - - {get_attr: [TenantPort, fixed_ips, 0, ip_address]}
34               - '/'
35               - {get_attr: [TenantPort, subnets, 0, cidr, -2]}
36               - {get_attr: [TenantPort, subnets, 0, cidr, -1]}