Jiri Stransky 0f67be560c Set volume_driver for iscsi backend explicitly
Setting the volume_driver option explicitly even for iscsi backend is
desirable, because if the user would switch from e.g. an nfs backend
to iscsi, the volume_driver config option would not be changed during
the Puppet run and still point to the nfs driver.

Defaults to LVMISCSIDriver, can be overriden to LVMISERDriver.

Change-Id: I860508ff92fce4add21c50e684e1717fc4f16622
2014-10-10 10:48:29 +02:00

18 lines
460 B
Puppet

#
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
}
}