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

Conversation

pfo-netic
Copy link

For some reason absolute_path for Debian systems is statically set to 'present' in install.pp.
This seems to be because dpkg can't accept $package_version if it is set to a version or 'auto'.

This makes you unable to use a puppet installer locally placed on the system to upgrade your puppet agent on Debian.

Why not set $_package_version = $package_version and then just make sure that it is either 'present' or 'latest' and otherwise fail?

@pfo-netic pfo-netic requested a review from a team as a code owner August 17, 2023 11:43
@CLAassistant
Copy link

CLAassistant commented Aug 17, 2023

CLA assistant check
All committers have signed the CLA.

@joshcooper
Copy link
Contributor

Closed and reopened to kick GH checks

@joshcooper
Copy link
Contributor

Thoughts @kenyon @bastelfreak ?

Copy link
Contributor

@kenyon kenyon left a comment

Choose a reason for hiding this comment

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

Thoughts @kenyon @bastelfreak ?

I don't use absolute_source, but I think the logic in this change makes sense.

I guess absolute_path in the PR title and description is a typo for absolute_source. Not sure what the "be dynamic" means. I'd title it "Fail with helpful error message on Debian if incorrect package_version is used with absolute_source".

@kenyon
Copy link
Contributor

kenyon commented Sep 25, 2024

For some reason absolute_path for Debian systems is statically set to 'present' in install.pp.

I think this should read "For some reason package_version for Debian systems is statically set to present in install.pp when using absolute_source.

@@ -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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants