Skip to content

Commit 86a1ac4

Browse files
committed
Added possibility to use both 'present' and 'latest' package_version for Debian systems when using absolute_path
1 parent ecfdc2b commit 86a1ac4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

manifests/install.pp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@
6161
$_install_options = $install_options
6262
if $::puppet_agent::absolute_source {
6363
# absolute_source means we use dpkg on debian based platforms
64-
$_package_version = 'present'
64+
if ($package_version != 'present' and $package_version != 'latest') {
65+
fail('When using $absolute_source on Debian, $package_version must be set to "present" or "latest"')
66+
}
67+
$_package_version = $package_version
6568
$_provider = 'dpkg'
6669
# The source package should have been downloaded by puppet_agent::prepare::package to the local_packages_dir
6770
$_source = "${::puppet_agent::params::local_packages_dir}/${::puppet_agent::prepare::package::package_file_name}"

0 commit comments

Comments
 (0)