Merge "Use pacemaker::resource::service instead of ::systemd"
[apex-tripleo-heat-templates.git] / network / storage.yaml
1 heat_template_version: 2014-10-16
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: string
16   StorageNetAdminStateUp:
17     default: false
18     description: This admin state of 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
37 resources:
38   StorageNetwork:
39     type: OS::Neutron::Net
40     properties:
41       admin_state_up: {get_param: StorageNetAdminStateUp}
42       name: {get_param: StorageNetName}
43       shared: {get_param: StorageNetShared}
44       value_specs: {get_param: StorageNetValueSpecs}
45
46   StorageSubnet:
47     type: OS::Neutron::Subnet
48     properties:
49       cidr: {get_param: StorageNetCidr}
50       enable_dhcp: {get_param: StorageNetEnableDHCP}
51       name: {get_param: StorageSubnetName}
52       network: {get_resource: StorageNetwork}
53
54 outputs:
55   OS::stack_id:
56     description: Neutron storage network
57     value: {get_resource: StorageNetwork}