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