Deprecate unused client_package_ensure

This parameter is not actually used by any implementation.

Change-Id: I07bc7892a150f893d466a00cccbad731f728e833
This commit is contained in:
Takashi Kajinami 2022-04-26 08:37:51 +09:00
parent 7558739921
commit 6c60f0d67e
2 changed files with 15 additions and 6 deletions

View File

@ -9,11 +9,6 @@
# (optional) The state of barbican packages
# Defaults to 'present'
#
# [*client_package_ensure*]
# (optional) Desired ensure state of the client package.
# accepts latest or specific versions.
# Defaults to 'present'.
#
# [*bind_host*]
# (optional) The IP address of the network interface to listen on
# Default to '0.0.0.0'.
@ -261,9 +256,13 @@
# (optional) Seconds (float) to wait between starting retry scheduler
# Defaults to undef
#
# [*client_package_ensure*]
# (optional) Desired ensure state of the client package.
# accepts latest or specific versions.
# Defaults to undef
#
class barbican::api (
$package_ensure = 'present',
$client_package_ensure = 'present',
$bind_host = '0.0.0.0',
$bind_port = '9311',
$host_href = undef,
@ -316,6 +315,7 @@ class barbican::api (
# DEPRECATED PARAMETERS
$retry_scheduler_initial_delay_seconds = undef,
$retry_scheduler_periodic_interval_max_seconds = undef,
$client_package_ensure = undef,
) inherits barbican::params {
include barbican::deps
@ -323,6 +323,10 @@ class barbican::api (
include barbican::client
include barbican::policy
if $client_package_ensure != undef {
warning('The client_package_ensure is deprecated and has no effect.')
}
package { 'barbican-api':
ensure => $package_ensure,
name => $::barbican::params::api_package_name,

View File

@ -0,0 +1,5 @@
---
deprecations:
- |
The ``barbican::api::client_package_ensure`` parameter has been deprecated
and will be removed in a future release. This parameter has had no effect.