Sylvain Baubeau de0a1263a4 Add backend for GlusterFS, Nexanta, SAN, and SolidFire
Some drivers could not be used in multi backends mode. This
commit adds a backend class for theses drivers and make use
of them in their respective cloud::volume::* class

Change-Id: I2939610cfc078d6ec6b85e5516138620b106237f
2014-03-27 02:48:21 +01:00

53 lines
1.5 KiB
Puppet

# == Class: cinder::volume::nexenta
#
# Setups Cinder with Nexenta volume driver.
#
# === Parameters
#
# [*nexenta_user*]
# (required) User name to connect to Nexenta SA.
#
# [*nexenta_password*]
# (required) Password to connect to Nexenta SA.
#
# [*nexenta_host*]
# (required) IP address of Nexenta SA.
#
# [*nexenta_volume*]
# (optional) Pool on SA that will hold all volumes. Defaults to 'cinder'.
#
# [*nexenta_target_prefix*]
# (optional) IQN prefix for iSCSI targets. Defaults to 'iqn:'.
#
# [*nexenta_target_group_prefix*]
# (optional) Prefix for iSCSI target groups on SA. Defaults to 'cinder/'.
#
# [*nexenta_blocksize*]
# (optional) Block size for volumes. Defaults to '8k'.
#
# [*nexenta_sparse*]
# (optional) Flag to create sparse volumes. Defaults to true.
#
class cinder::volume::nexenta (
$nexenta_user,
$nexenta_password,
$nexenta_host,
$nexenta_volume = 'cinder',
$nexenta_target_prefix = 'iqn:',
$nexenta_target_group_prefix = 'cinder/',
$nexenta_blocksize = '8k',
$nexenta_sparse = true
) {
cinder::backend::nexenta { 'DEFAULT':
nexenta_user => $nexenta_user,
nexenta_password => $nexenta_password,
nexenta_host => $nexenta_host,
nexenta_volume => $nexenta_volume,
nexenta_target_prefix => $nexenta_target_prefix,
nexenta_target_group_prefix => $nexenta_target_group_prefix,
nexenta_blocksize => $nexenta_blocksize,
nexenta_sparse => $nexenta_sparse,
}
}