diff --git a/manifests/volume/san.pp b/manifests/volume/san.pp new file mode 100644 index 000000000..e86b82128 --- /dev/null +++ b/manifests/volume/san.pp @@ -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; + } + +}