1 # == Class: cinder::volume::rbd
3 # Setup Cinder to use the RBD driver.
8 # (required) Specifies the pool name for the block device driver.
11 # (required) A required parameter to configure OS init scripts and cephx.
14 # (optional) Path to the ceph configuration file to use
15 # Defaults to '/etc/ceph/ceph.conf'
17 # [*rbd_flatten_volume_from_snapshot*]
18 # (optional) Enable flatten volumes created from snapshots.
22 # (optional) A required parameter to use cephx.
26 # (optional) Location to store temporary image files if the volume
27 # driver does not write them directly to the volume
30 # [*rbd_max_clone_depth*]
31 # (optional) Maximum number of nested clones that can be taken of a
32 # volume before enforcing a flatten prior to next clone.
33 # A value of zero disables cloning
36 # [*glance_api_version*]
37 # (optional) DEPRECATED: Use cinder::glance Class instead.
38 # Glance API version. (Defaults to '2')
39 # Setting this parameter cause a duplicate resource declaration
42 class cinder::volume::rbd (
45 $rbd_ceph_conf = '/etc/ceph/ceph.conf',
46 $rbd_flatten_volume_from_snapshot = false,
47 $rbd_secret_uuid = false,
48 $volume_tmp_dir = false,
49 $rbd_max_clone_depth = '5',
50 # DEPRECATED PARAMETERS
51 $glance_api_version = undef,
54 cinder::backend::rbd { 'DEFAULT':
55 rbd_pool => $rbd_pool,
56 rbd_user => $rbd_user,
57 rbd_ceph_conf => $rbd_ceph_conf,
58 rbd_flatten_volume_from_snapshot => $rbd_flatten_volume_from_snapshot,
59 rbd_secret_uuid => $rbd_secret_uuid,
60 volume_tmp_dir => $volume_tmp_dir,
61 rbd_max_clone_depth => $rbd_max_clone_depth,
62 glance_api_version => $glance_api_version,