2 # == Class: cinder::volume::glusterfs
4 # Configures Cinder to use GlusterFS as a volume driver
9 # (required) An array of GlusterFS volume locations.
10 # Must be an array even if there is only one volume.
12 # [*glusterfs_disk_util*]
13 # Removed in Icehouse.
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".
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".
23 # [*glusterfs_shares_config*]
24 # (optional) The config file to store the given $glusterfs_shares.
25 # Defaults to '/etc/cinder/shares.conf'
29 # class { 'cinder::volume::glusterfs':
30 # glusterfs_shares = ['192.168.1.1:/volumes'],
33 class cinder::volume::glusterfs (
35 $glusterfs_disk_util = false,
36 $glusterfs_sparsed_volumes = undef,
37 $glusterfs_mount_point_base = undef,
38 $glusterfs_shares_config = '/etc/cinder/shares.conf'
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,