From ced9154a41c7cc436b6bc3e92af1e2cb9c88a8a0 Mon Sep 17 00:00:00 2001 From: Rene Brands Date: Wed, 5 Jan 2022 22:20:08 +0100 Subject: [PATCH] Update install.pp When using dpkg provider along with a source attribute, a package update will only work when the ensure attribute has the value 'latest'. --- manifests/install.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/install.pp b/manifests/install.pp index b0fcfa93..78e6717f 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -61,7 +61,7 @@ $_install_options = $install_options if $::puppet_agent::absolute_source { # absolute_source means we use dpkg on debian based platforms - $_package_version = 'present' + $_package_version = 'latest' $_provider = 'dpkg' # The source package should have been downloaded by puppet_agent::prepare::package to the local_packages_dir $_source = "${::puppet_agent::params::local_packages_dir}/${::puppet_agent::prepare::package::package_file_name}"