Files
puppet-nova/manifests/volume/san.pp
Mathieu Gagné 1c7fa0d695 Allow to hide config values from Puppet logs
Hide configuration value from Puppet logs if the secret parameter
is set to true.

Fixes: bug #1173322
Change-Id: I0815c3a1b84201fc7c39d221ff7f07fbd22fbcd4
2013-06-10 20:38:05 -04:00

38 lines
1.0 KiB
Puppet

# 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 { 'DEFAULT/san_private_key': value => $san_private_key }
} else {
nova_config {
'DEFAULT/san_login': value => $san_login;
'DEFAULT/san_password': value => $san_password, secret => true;
}
}
nova_config {
'DEFAULT/volume_driver': value => $volume_driver;
'DEFAULT/san_ip': value => $san_ip;
'DEFAULT/san_clustername': value => $san_clustername;
}
}