This patch does a lot of cleanup in the cinder module.
It does the following:
* Removes all deprecated parameters that can be removed
in this release.
* Removes the bdd (block device driver) that is removed
from cinder [1].
* Adds deprecation notices for cinder::type and
cinder::type_set classes that had a comment about it.
[1] 711e88a8f9
Change-Id: Ic75547396ddf3e553023583d987500f77909d277
34 lines
678 B
Puppet
34 lines
678 B
Puppet
# ==Define: cinder::type_set
|
|
#
|
|
# Assigns keys after the volume type is set.
|
|
# Deprecated class.
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*type*]
|
|
# (required) Accepts single name of type to set.
|
|
#
|
|
# [*key*]
|
|
# (required) the key name that we are setting the value for.
|
|
#
|
|
# [*value*]
|
|
# the value that we are setting. Defaults to content of namevar.
|
|
#
|
|
# Author: Andrew Woodward <awoodward@mirantis.com>
|
|
#
|
|
define cinder::type_set (
|
|
$type,
|
|
$key,
|
|
$value = $name,
|
|
) {
|
|
|
|
include ::cinder::deps
|
|
|
|
warning('The cinder::type_set class is deprecated, please use the cinder_type resource instead.')
|
|
|
|
cinder_type { $type:
|
|
ensure => present,
|
|
properties => ["${key}=${value}"],
|
|
}
|
|
}
|