
Currently if a backend type parameter has not been specified in the upstream module one needs to rely on a custom layer to enable them. With this options even if not yet specified on the upstream module, user can specify extra options for each backends. Change-Id: I0387c86ff3e04a1d1c6b686f76d9c7c88c30a356
61 lines
1.8 KiB
Puppet
61 lines
1.8 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.
|
|
#
|
|
# [*extra_options*]
|
|
# (optional) Hash of extra options to pass to the backend stanza
|
|
# Defaults to: {}
|
|
# Example :
|
|
# { 'nexenta_backend/param1' => { 'value' => value1 } }
|
|
#
|
|
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,
|
|
$extra_options = {},
|
|
) {
|
|
|
|
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,
|
|
extra_options => $extra_options,
|
|
}
|
|
}
|