Add nova-volume san support

This commit is contained in:
Ivan Ponomarev 2012-09-06 16:56:37 +04:00 committed by Eugene Kirpichov
parent bf8254ddc3
commit 67938cb85d

37
manifests/volume/san.pp Normal file
View File

@ -0,0 +1,37 @@
# Class: nova::volume::san
#
# This class assumes that you have already configured your
# volume group - either by another module or during the server
# provisioning
#
# SanISCSIDriver(nova.volume.driver.ISCSIDriver):
# SolarisISCSIDriver(SanISCSIDriver):
# HpSanISCSIDriver(SanISCSIDriver):
# SolidFireSanISCSIDriver(SanISCSIDriver):
#
class nova::volume::san (
$volume_driver = 'nova.volume.san.SolarisISCSIDriver',
$san_ip = '127.0.0.1',
$san_login = 'cluster_operator',
$san_password = '007',
$san_private_key = undef,
$san_clustername = 'storage_cluster'
) {
if $san_private_key {
nova_config { 'san_private_key': value => $san_private_key }
} else {
nova_config {
'san_login': value => $san_login;
'san_password': value => $san_password;
}
}
nova_config {
'volume_driver': value => $volume_driver;
'san_ip': value => $san_ip;
'san_clustername': value => $san_clustername;
}
}