try again, with puppetforge modules, correctly included now
[mirror/dsa-puppet.git] / 3rdparty / modules / cinder / manifests / volume / quobyte.pp
1 #
2 # == Class: cinder::volume::quobyte
3 #
4 # Configures Cinder to use Quobyte USP as a volume driver
5 #
6 # === Parameters
7 #
8 # [*quobyte_volume_url*]
9 #   (required) The URL of the Quobyte volume to use.
10 #   Not an array as a Quobyte driver instance supports exactly one volume
11 #   at a time - but you can load the driver more than once.
12 #   Example: quobyte://quobyte.cluster.example.com/volume-name
13 #
14 # [*quobyte_client_cfg*]
15 #   (optional) Path to a Quobyte client configuration file.
16 #   This is needed if client certificate authentication is enabled on the
17 #   Quobyte cluster. The config file includes the certificate and key.
18 #
19 # [*quobyte_qcow2_volumes*]
20 #   (optional) Boolean if volumes should be created as qcow2 volumes.
21 #   Defaults to True. qcow2 volumes allow snapshots, at the cost of a small
22 #   performance penalty. If False, raw volumes will be used.
23 #
24 # [*quobyte_sparsed_volumes*]
25 #   (optional) Boolean if raw volumes should be created as sparse files.
26 #   Defaults to True. Non-sparse volumes may have a very small performance
27 #   benefit, but take a long time to create.
28 #
29 # [*quobyte_mount_point_base*]
30 #   (optional) Path where the driver should create mountpoints.
31 #   Defaults to a subdirectory "mnt" under the Cinder state directory.
32 #
33 # === Examples
34 #
35 # class { 'cinder::volume::quobyte':
36 #   quobyte_volume_url => 'quobyte://quobyte.cluster.example.com/volume-name',
37 # }
38 #
39 class cinder::volume::quobyte (
40   $quobyte_volume_url,
41   $quobyte_client_cfg       = undef,
42   $quobyte_qcow2_volumes    = undef,
43   $quobyte_sparsed_volumes  = undef,
44   $quobyte_mount_point_base = undef,
45 ) {
46
47   cinder::backend::quobyte { 'DEFAULT':
48     quobyte_volume_url       => $quobyte_volume_url,
49     quobyte_client_cfg       => $quobyte_client_cfg,
50     quobyte_qcow2_volumes    => $quobyte_qcow2_volumes,
51     quobyte_sparsed_volumes  => $quobyte_sparsed_volumes,
52     quobyte_mount_point_base => $quobyte_mount_point_base,
53   }
54
55 }