This changes the puppet-lint requirement to 1.1.x, so that we can use puppet-lint plugins. Most of these plugins are for 4.x compat, but some just catch common errors. Change-Id: I6a4e08d91f8cc19eb1e59af03a2a7d14716ddc38
38 lines
1018 B
Puppet
38 lines
1018 B
Puppet
# == Class: cinder::volume::iscsi
|
|
#
|
|
# Configures Cinder volume ISCSI driver.
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*iscsi_ip_address*]
|
|
# (Required) The IP address that the iSCSI daemon is listening on
|
|
#
|
|
# [*volume_driver*]
|
|
# (Optional) Driver to use for volume creation
|
|
# Defaults to 'cinder.volume.drivers.lvm.LVMISCSIDriver'.
|
|
#
|
|
# [*volume_group*]
|
|
# (Optional) Name for the VG that will contain exported volumes
|
|
# Defaults to 'cinder-volumes'.
|
|
#
|
|
# [*iscsi_helper*]
|
|
# (Optional) iSCSI target user-land tool to use.
|
|
# Defaults to '$::cinder::params::iscsi_helper'.
|
|
#
|
|
class cinder::volume::iscsi (
|
|
$iscsi_ip_address,
|
|
$volume_driver = 'cinder.volume.drivers.lvm.LVMISCSIDriver',
|
|
$volume_group = 'cinder-volumes',
|
|
$iscsi_helper = $::cinder::params::iscsi_helper,
|
|
) {
|
|
|
|
include ::cinder::params
|
|
|
|
cinder::backend::iscsi { 'DEFAULT':
|
|
iscsi_ip_address => $iscsi_ip_address,
|
|
volume_driver => $volume_driver,
|
|
volume_group => $volume_group,
|
|
iscsi_helper => $iscsi_helper
|
|
}
|
|
}
|