Skip to content

Commit

Permalink
Added possibility to use both 'present' and 'latest' package_version …
Browse files Browse the repository at this point in the history
…for Debian systems when using absolute_path
  • Loading branch information
pfo-netic committed Aug 17, 2023
1 parent ecfdc2b commit 86a1ac4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@
$_install_options = $install_options
if $::puppet_agent::absolute_source {
# absolute_source means we use dpkg on debian based platforms
$_package_version = 'present'
if ($package_version != 'present' and $package_version != 'latest') {
fail('When using $absolute_source on Debian, $package_version must be set to "present" or "latest"')
}
$_package_version = $package_version
$_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}"
Expand Down

0 comments on commit 86a1ac4

Please sign in to comment.