
Based on the work in Cinder, https://blueprints.launchpad.net/cinder/+spec/shared-backend-config support for Cinder drivers in the DEFAULT section will be elimiated, this fix starts a similar change for the puppet cinder module. Change-Id: Iea1ebb5726ff4e3bf28e11f2f443b7198b4e36bc Implements: blueprint remove-drivers-in-default
83 lines
2.7 KiB
Puppet
83 lines
2.7 KiB
Puppet
# == define: cinder::volume::vmdk
|
|
#
|
|
# Configure the VMware VMDK driver for cinder.
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*host_ip*]
|
|
# The IP address of the VMware vCenter server.
|
|
#
|
|
# [*host_username*]
|
|
# The username for connection to VMware vCenter server.
|
|
#
|
|
# [*host_password*]
|
|
# The password for connection to VMware vCenter server.
|
|
#
|
|
# [*api_retry_count*]
|
|
# (optional) The number of times we retry on failures,
|
|
# e.g., socket error, etc.
|
|
# Defaults to 10.
|
|
#
|
|
# [*max_object_retrieval*]
|
|
# (optional) The maximum number of ObjectContent data objects that should
|
|
# be returned in a single result. A positive value will cause
|
|
# the operation to suspend the retrieval when the count of
|
|
# objects reaches the specified maximum. The server may still
|
|
# limit the count to something less than the configured value.
|
|
# Any remaining objects may be retrieved with additional requests.
|
|
# Defaults to 100.
|
|
#
|
|
# [*task_poll_interval*]
|
|
# (optional) The interval in seconds used for polling of remote tasks.
|
|
# Defaults to 5.
|
|
#
|
|
# [*image_transfer_timeout_secs*]
|
|
# (optional) The timeout in seconds for VMDK volume transfer between Cinder and Glance.
|
|
# Defaults to 7200.
|
|
#
|
|
# [*wsdl_location*]
|
|
# (optional) VIM Service WSDL Location e.g
|
|
# http://<server>/vimService.wsdl. Optional over-ride to
|
|
# default location for bug work-arounds.
|
|
# Defaults to None.
|
|
#
|
|
# [*volume_folder*]
|
|
# (optional) The name for the folder in the VC datacenter that will contain cinder volumes.
|
|
# Defaults to 'cinder-volumes'.
|
|
#
|
|
# [*extra_options*]
|
|
# (optional) Hash of extra options to pass to the backend stanza
|
|
# Defaults to: {}
|
|
# Example :
|
|
# { 'vmdk_backend/param1' => { 'value' => value1 } }
|
|
#
|
|
class cinder::volume::vmdk(
|
|
$host_ip,
|
|
$host_username,
|
|
$host_password,
|
|
$volume_folder = 'cinder-volumes',
|
|
$api_retry_count = 10,
|
|
$max_object_retrieval = 100,
|
|
$task_poll_interval = 5,
|
|
$image_transfer_timeout_secs = 7200,
|
|
$wsdl_location = undef,
|
|
$extra_options = {},
|
|
) {
|
|
|
|
warning('Usage of cinder::volume::vmdk is deprecated, please use
|
|
cinder::backend::vmdk instead.')
|
|
|
|
cinder::backend::vmdk { 'DEFAULT':
|
|
host_ip => $host_ip,
|
|
host_username => $host_username,
|
|
host_password => $host_password,
|
|
volume_folder => $volume_folder,
|
|
api_retry_count => $api_retry_count,
|
|
max_object_retrieval => $max_object_retrieval,
|
|
task_poll_interval => $task_poll_interval,
|
|
image_transfer_timeout_secs => $image_transfer_timeout_secs,
|
|
wsdl_location => $wsdl_location,
|
|
extra_options => $extra_options,
|
|
}
|
|
}
|