From d0419e4a1f1542413bcb14d4668f3d9ca04f8f1c Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Fri, 17 Dec 2021 09:01:56 +0900 Subject: [PATCH] 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 --- manifests/qos.pp | 3 +++ .../notes/deprecate-cinder-qos-e47dcf3da78f37f9.yaml | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 releasenotes/notes/deprecate-cinder-qos-e47dcf3da78f37f9.yaml diff --git a/manifests/qos.pp b/manifests/qos.pp index 6e9567b2..9e36bcb0 100644 --- a/manifests/qos.pp +++ b/manifests/qos.pp @@ -1,5 +1,6 @@ # == Define: cinder::qos # +# DEPRECATED ! # Creates cinder QOS and assigns properties and volume type # # === Parameters @@ -24,6 +25,8 @@ define cinder::qos ( include cinder::deps + warning('The cinder::type is deprecated, please use the cinder_qos resource.') + cinder_qos { $name: ensure => present, properties => $properties, diff --git a/releasenotes/notes/deprecate-cinder-qos-e47dcf3da78f37f9.yaml b/releasenotes/notes/deprecate-cinder-qos-e47dcf3da78f37f9.yaml new file mode 100644 index 00000000..4f3c2add --- /dev/null +++ b/releasenotes/notes/deprecate-cinder-qos-e47dcf3da78f37f9.yaml @@ -0,0 +1,5 @@ +--- +deprecations: + - | + The ``cinder::qos`` resource type has been deprecated. + Use the ``cinder_qos`` class directly instead.