Remove deprecated ensure_package option

Change-Id: I40cc47c2001e86914177cb38a91392fa8d9a56ba
This commit is contained in:
ZhongShengping 2018-03-29 12:01:14 +08:00
parent 3e3f5a2280
commit f92f708d4c
2 changed files with 4 additions and 17 deletions

View File

@ -13,32 +13,16 @@
# in the panko config.
# Defaults to false.
#
# DEPRECATED PARAMETERS
#
# [*ensure_package*]
# (optional) The state of panko packages
# Defaults to undef
#
class panko (
$package_ensure = 'present',
$purge_config = false,
# DEPRECATED PARAMETERS
$ensure_package = undef,
) inherits panko::params {
include ::panko::deps
include ::panko::logging
if $ensure_package {
warning("panko::ensure_package is deprecated and will be removed in \
the future release. Please use panko::package_ensure instead.")
$package_ensure_real = $ensure_package
} else {
$package_ensure_real = $package_ensure
}
package { 'panko':
ensure => $package_ensure_real,
ensure => $package_ensure,
name => $::panko::params::common_package_name,
tag => ['openstack', 'panko-package'],
}

View File

@ -0,0 +1,3 @@
---
upgrade:
- Deprecated ensure_package option has been removed.