0a704ea374430dc141c709549f0821a32c498efb
[apex-tripleo-heat-templates.git] / network / storage.yaml
1 heat_template_version: ocata
2
3 description: >
4   Storage network.
5
6 parameters:
7   # the defaults here work for static IP assignment (IPAM) only
8   StorageNetCidr:
9     default: '172.16.1.0/24'
10     description: Cidr for the storage network.
11     type: string
12   StorageNetValueSpecs:
13     default: {'provider:physical_network': 'storage', 'provider:network_type': 'flat'}
14     description: Value specs for the storage network.
15     type: json
16   StorageNetAdminStateUp:
17     default: false
18     description: This admin state of the network.
19     type: boolean
20   StorageNetEnableDHCP:
21     default: false
22     description: Whether to enable DHCP on the associated subnet.
23     type: boolean
24   StorageNetShared:
25     default: false
26     description: Whether this network is shared across all tenants.
27     type: boolean
28   StorageNetName:
29     default: storage
30     description: The name of the storage network.
31     type: string
32   StorageSubnetName:
33     default: storage_subnet
34     description: The name of the storage subnet in Neutron.
35     type: string
36   StorageAllocationPools:
37     default: [{'start': '172.16.1.4', 'end': '172.16.1.250'}]
38     description: Ip allocation pool range for the storage network.
39     type: json
40
41 resources:
42   StorageNetwork:
43     type: OS::Neutron::Net
44     properties:
45       admin_state_up: {get_param: StorageNetAdminStateUp}
46       name: {get_param: StorageNetName}
47       shared: {get_param: StorageNetShared}
48       value_specs: {get_param: StorageNetValueSpecs}
49
50   StorageSubnet:
51     type: OS::Neutron::Subnet
52     properties:
53       cidr: {get_param: StorageNetCidr}
54       enable_dhcp: {get_param: StorageNetEnableDHCP}
55       name: {get_param: StorageSubnetName}
56       network: {get_resource: StorageNetwork}
57       allocation_pools: {get_param: StorageAllocationPools}
58       gateway_ip: null
59
60 outputs:
61   OS::stack_id:
62     description: Neutron storage network
63     value: {get_resource: StorageNetwork}