From 2bd08eeb5ba1479a6f298785d0180a28dfd5ee94 Mon Sep 17 00:00:00 2001 From: Greg Cox Date: Sat, 16 Mar 2024 23:58:25 +0000 Subject: [PATCH] Use namespaced ensure_packages, require new stdlib --- manifests/enterprise/install/nix.pp | 2 +- manifests/forwarder/install.pp | 2 +- metadata.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manifests/enterprise/install/nix.pp b/manifests/enterprise/install/nix.pp index 5973e6d9..33b220ca 100644 --- a/manifests/enterprise/install/nix.pp +++ b/manifests/enterprise/install/nix.pp @@ -32,7 +32,7 @@ # Required for splunk 7.2.4.2 if $splunk::params::manage_net_tools and versioncmp($splunk::enterprise::version, '7.2.4.2') >= 0 { - ensure_packages(['net-tools'], { + stdlib::ensure_packages(['net-tools'], { 'ensure' => 'present', }) Package['net-tools'] -> Package[$splunk::enterprise::enterprise_package_name] diff --git a/manifests/forwarder/install.pp b/manifests/forwarder/install.pp index dcc18cb1..4d64bda2 100644 --- a/manifests/forwarder/install.pp +++ b/manifests/forwarder/install.pp @@ -63,7 +63,7 @@ # Required for splunk 7.2.4.2 if $splunk::params::manage_net_tools and $facts['kernel'] == 'Linux' and (versioncmp($splunk::forwarder::version, '7.2.4.2') >= 0) { - ensure_packages(['net-tools'], { + stdlib::ensure_packages(['net-tools'], { 'ensure' => 'present', }) Package['net-tools'] -> Package[$splunk::forwarder::package_name] diff --git a/metadata.json b/metadata.json index c4e452ca..fe4b50c0 100644 --- a/metadata.json +++ b/metadata.json @@ -94,7 +94,7 @@ "dependencies": [ { "name": "puppetlabs-stdlib", - "version_requirement": ">= 4.25.0 < 10.0.0" + "version_requirement": ">= 9.0.0 < 10.0.0" }, { "name": "puppetlabs-inifile",