51 lines
1.6 KiB
Puppet
Executable File
51 lines
1.6 KiB
Puppet
Executable File
#
|
|
# Configures Cinder volume PureStorage driver.
|
|
# Parameters are particular to each volume driver.
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*san_ip*]
|
|
# (required) IP address of PureStorage management VIP.
|
|
#
|
|
# [*pure_api_token*]
|
|
# (required) API token for management of PureStorage array.
|
|
#
|
|
# [*volume_backend_name*]
|
|
# (optional) Allows for the volume_backend_name to be separate of $name.
|
|
# Defaults to: $backend_name
|
|
#
|
|
# [*use_multipath_for_image_xfer*]
|
|
# (optional) .
|
|
# Defaults to True
|
|
#
|
|
# [*pure_use_chap*]
|
|
# (optional) Only affects the PureISCSIDriver.
|
|
# Defaults to False
|
|
#
|
|
# [*extra_options*]
|
|
# (optional) Hash of extra options to pass to the backend stanza.
|
|
# Defaults to: {}
|
|
# Example :
|
|
# { 'pure_backend/param1' => { 'value' => value1 } }
|
|
#
|
|
class plugin_purestorage_cinder::backend::pure(
|
|
$san_ip = "",
|
|
$pure_api_token = "",
|
|
$volume_backend_name = $backend_name,
|
|
$pure_use_chap = false,
|
|
$use_multipath_for_image_xfer = true,
|
|
$extra_options = {},
|
|
) {
|
|
|
|
cinder_config {
|
|
"${backend_name}/volume_backend_name": value => $volume_backend_name;
|
|
"${backend_name}/volume_driver": value => $volume_driver;
|
|
"${backend_name}/san_ip": value => $san_ip;
|
|
"${backend_name}/pure_api_token": value => $pure_api_token, secret => true;
|
|
"${backend_name}/pure_use_chap": value => $pure_use_chap;
|
|
"${backend_name}/use_multipath_for_image_xfer": value => $use_multipath_for_image_xfer ;
|
|
}
|
|
|
|
create_resources('cinder_config', $extra_options)
|
|
}
|