puppet-cinder/manifests/type_set.pp
Tobias Urdin 1e1be4fb56 Convert all class usage to relative names
Change-Id: Ib509c510e3e5ed19fbb1b5f68a060cde02d82eab
2019-12-08 23:02:56 +01:00

34 lines
676 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}"],
}
}