Remove deprecated ensure_package option
Change-Id: Ic750e3905871bd7faad19ab764e7b762441a6304
This commit is contained in:
@@ -25,20 +25,12 @@
|
||||
# (Optional) Run db sync on the node.
|
||||
# Defaults to true.
|
||||
#
|
||||
# DEPRECATED PARAMETERS
|
||||
#
|
||||
# [*ensure_package*]
|
||||
# (optional) The state of rally packages
|
||||
# Defaults to undef.
|
||||
#
|
||||
class rally (
|
||||
$package_ensure = 'present',
|
||||
$rally_debug = $::os_service_default,
|
||||
$openstack_client_http_timeout = $::os_service_default,
|
||||
$purge_config = false,
|
||||
$sync_db = true,
|
||||
# DEPRECATED PARAMETERS
|
||||
$ensure_package = undef,
|
||||
) inherits ::rally::params {
|
||||
|
||||
include ::rally::deps
|
||||
@@ -49,16 +41,8 @@ class rally (
|
||||
# Keep backward compatibility
|
||||
$openstack_client_http_timeout_real = pick($::rally::settings::openstack_client_http_timeout,$openstack_client_http_timeout)
|
||||
|
||||
if $ensure_package {
|
||||
warning("rally::ensure_package is deprecated and will be removed in \
|
||||
the future release. Please use rally::package_ensure instead.")
|
||||
$package_ensure_real = $ensure_package
|
||||
} else {
|
||||
$package_ensure_real = $package_ensure
|
||||
}
|
||||
|
||||
package { 'rally':
|
||||
ensure => $package_ensure_real,
|
||||
ensure => $package_ensure,
|
||||
name => $::rally::params::package_name,
|
||||
tag => ['openstack', 'rally-package'],
|
||||
}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
---
|
||||
upgrade:
|
||||
- Deprecated ensure_package option has been removed.
|
||||
Reference in New Issue
Block a user