puppet-cinder/manifests/qos.pp
Takashi Kajinami d0419e4a1f Deprecate redundant cinder::qos resource type
The cinder::qos resource type is just a wrapper of cinder_qos and
has no additional implementation. Let's deprecate it and let users
use the cinder_qos resource directly.

Change-Id: Ibe59fbf893a7169ea6e3bf00a72b4df28b780b14
2021-12-17 05:30:28 +00:00

37 lines
788 B
Puppet

# == Define: cinder::qos
#
# DEPRECATED !
# Creates cinder QOS and assigns properties and volume type
#
# === Parameters
#
# [*associations*]
# (optional) List of cinder type associated with this QOS
# Defaults to 'undef'.
#
# [*consumer*]
# (optional) QOS consumer parameter (typicaly front-end/back-end/both)
# Defaults to 'undef'.
#
# [*properties*]
# (optional) List QOS properties
# Defaults to 'undef'.
#
define cinder::qos (
$associations = undef,
$consumer = undef,
$properties = undef,
) {
include cinder::deps
warning('The cinder::type is deprecated, please use the cinder_qos resource.')
cinder_qos { $name:
ensure => present,
properties => $properties,
consumer => $consumer,
associations => $associations,
}
}