Merge pull request #212 from Mirantis/volume-san

Add nova-volume san support
This commit is contained in:
Dan Bode 2012-11-21 14:44:46 -08:00
commit a4b7581cc7
1 changed files with 37 additions and 0 deletions

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