memcached (openstack) is no longer in use
[mirror/dsa-puppet.git] / 3rdparty / modules / cinder / manifests / volume / glusterfs.pp
1 #
2 # == Class: cinder::volume::glusterfs
3 #
4 # Configures Cinder to use GlusterFS as a volume driver
5 #
6 # === Parameters
7 #
8 # [*glusterfs_shares*]
9 #   (required) An array of GlusterFS volume locations.
10 #   Must be an array even if there is only one volume.
11 #
12 # [*glusterfs_disk_util*]
13 #   Removed in Icehouse.
14 #
15 # [*glusterfs_sparsed_volumes*]
16 #   (optional) Whether or not to use sparse (thin) volumes.
17 #   Defaults to undef which uses the driver's default of "true".
18 #
19 # [*glusterfs_mount_point_base*]
20 #   (optional) Where to mount the Gluster volumes.
21 #   Defaults to undef which uses the driver's default of "$state_path/mnt".
22 #
23 # [*glusterfs_shares_config*]
24 #   (optional) The config file to store the given $glusterfs_shares.
25 #   Defaults to '/etc/cinder/shares.conf'
26 #
27 # === Examples
28 #
29 # class { 'cinder::volume::glusterfs':
30 #   glusterfs_shares = ['192.168.1.1:/volumes'],
31 # }
32 #
33 class cinder::volume::glusterfs (
34   $glusterfs_shares,
35   $glusterfs_disk_util        = false,
36   $glusterfs_sparsed_volumes  = undef,
37   $glusterfs_mount_point_base = undef,
38   $glusterfs_shares_config    = '/etc/cinder/shares.conf'
39 ) {
40
41   cinder::backend::glusterfs { 'DEFAULT':
42     glusterfs_shares           => $glusterfs_shares,
43     glusterfs_disk_util        => $glusterfs_disk_util,
44     glusterfs_sparsed_volumes  => $glusterfs_sparsed_volumes,
45     glusterfs_mount_point_base => $glusterfs_mount_point_base,
46     glusterfs_shares_config    => $glusterfs_shares_config,
47   }
48 }