Adds network/cidr mapping into a new service property
[apex-tripleo-heat-templates.git] / network / storage_mgmt.yaml
1 heat_template_version: pike
2
3 description: >
4   Storage management network. Storage replication, etc.
5
6 parameters:
7   # the defaults here work for static IP assignment (IPAM) only
8   StorageMgmtNetCidr:
9     default: '172.16.3.0/24'
10     description: Cidr for the storage management network.
11     type: string
12   StorageMgmtNetValueSpecs:
13     default: {'provider:physical_network': 'storage_mgmt', 'provider:network_type': 'flat'}
14     description: Value specs for the storage_mgmt network.
15     type: json
16   StorageMgmtNetAdminStateUp:
17     default: false
18     description: The admin state of the network.
19     type: boolean
20   StorageMgmtNetEnableDHCP:
21     default: false
22     description: Whether to enable DHCP on the associated subnet.
23     type: boolean
24   StorageMgmtNetShared:
25     default: false
26     description: Whether this network is shared across all tenants.
27     type: boolean
28   StorageMgmtNetName:
29     default: storage_mgmt
30     description: The name of the Storage management network.
31     type: string
32   StorageMgmtSubnetName:
33     default: storage_mgmt_subnet
34     description: The name of the Storage management subnet in Neutron.
35     type: string
36   StorageMgmtAllocationPools:
37     default: [{'start': '172.16.3.4', 'end': '172.16.3.250'}]
38     description: Ip allocation pool range for the storage mgmt network.
39     type: json
40
41 resources:
42   StorageMgmtNetwork:
43     type: OS::Neutron::Net
44     properties:
45       admin_state_up: {get_param: StorageMgmtNetAdminStateUp}
46       name: {get_param: StorageMgmtNetName}
47       shared: {get_param: StorageMgmtNetShared}
48       value_specs: {get_param: StorageMgmtNetValueSpecs}
49
50   StorageMgmtSubnet:
51     type: OS::Neutron::Subnet
52     properties:
53       cidr: {get_param: StorageMgmtNetCidr}
54       enable_dhcp: {get_param: StorageMgmtNetEnableDHCP}
55       name: {get_param: StorageMgmtSubnetName}
56       network: {get_resource: StorageMgmtNetwork}
57       allocation_pools: {get_param: StorageMgmtAllocationPools}
58       gateway_ip: null
59
60 outputs:
61   OS::stack_id:
62     description: Neutron storage management network
63     value: {get_resource: StorageMgmtNetwork}
64   subnet_cidr:
65     value: {get_attr: StorageMgmtSubnet, cidr}