Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for debian absolute_path to be dynamic #660

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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') {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't installed also allowed?

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
Loading