From b335b1a18792094f53a81fed876759912e56c8e5 Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Fri, 28 Jul 2023 19:53:21 +0200 Subject: [PATCH] require puppetlabs/stdlib 9.x The `ensure_packages()` function is deprecated. The successor is `stdlib::ensure_packages(). --- manifests/providers.pp | 2 +- metadata.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/providers.pp b/manifests/providers.pp index a895aab4c..a08047de5 100644 --- a/manifests/providers.pp +++ b/manifests/providers.pp @@ -16,7 +16,7 @@ String $oauth_package = $foreman::providers::params::oauth_package, ) inherits foreman::providers::params { if $oauth { - ensure_packages([$oauth_package]) + stdlib::ensure_packages([$oauth_package]) anchor { 'foreman::providers::oauth': } # lint:ignore:anchor_resource Anchor <| title == 'foreman::repo' |> -> Package[$oauth_package] -> Anchor['foreman::providers::oauth'] } diff --git a/metadata.json b/metadata.json index c0a6bfed2..9c5f06f2e 100644 --- a/metadata.json +++ b/metadata.json @@ -34,7 +34,7 @@ }, { "name": "puppetlabs/stdlib", - "version_requirement": ">= 4.25.0 < 9.0.0" + "version_requirement": ">= 9.0.0 < 10.0.0" }, { "name": "puppet/extlib",