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