-
Notifications
You must be signed in to change notification settings - Fork 193
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
Add Debian package pin to stop the version changing on apt upgrade #415
base: main
Are you sure you want to change the base?
Conversation
Waiting for CLA signature by @ddryden @ddryden - We require a Contributor License Agreement (CLA) for people who contribute to Puppet, but we have an easy click-through license with instructions, which is available at https://cla.puppet.com/ Note: if your contribution is trivial and you think it may be exempt from the CLA, please post a short reply to this comment with details. http://docs.puppet.com/community/trivial_patch_exemption.html |
CLA signed by all contributors. |
@@ -62,6 +62,11 @@ | |||
$_package_version = $package_version | |||
} else { | |||
$_package_version = "${package_version}-1${::lsbdistcodename}" | |||
apt::pin { "pin ${::puppet_agent::package_name} package": | |||
packages => $::puppet_agent::package_name, | |||
priority => 1000, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In order to support downgrade, my understanding is that priority should be 1001: https://linux.die.net/man/5/apt_preferences
How is this PR going? I'd love to see this merged & released :) |
@ciprianbadescu thanks for the quick response. Would you mind if I replicated the PR and performed the change to speed things along? |
@seoester, would be OK. Pls also check https://github.com/puppetlabs/puppetlabs-puppet_agent/blob/master/CONTRIBUTING.md |
Sorry for being slow to respond. Your right 1001 would be a better priority. I don't know my way around the test's could you link some documentation? https://github.com/puppetlabs/puppetlabs-puppet_agent/blob/master/CONTRIBUTING.md seems to have a Testing section listed in the table of contents but does not exist in the document. |
|
Implementation is going a different route, and this PR can likely be closed #441 (comment). |
@seoester Our puppetN-release packages on apt.puppet.com now install a preferences file (see puppetlabs/puppetlabs-release@ecf2c85#diff-4fbc9b1630d785c70cd453b814c99fa693faae74aabf983473e85ef200b3b32d) This was done because Debian and Ubuntu have started publishing |
@joshcooper, thanks for the ping after so much time. The pinning you are referencing pins the Apt Source/Repo of the puppet-agent package. I believe this specific PR can be closed in any case. That's because the team wanted to go a different route, using a new feature of the dpkg provider rather than apt pinning: #441 (comment) |
When on Debian and a package version is specified we should also create a Debian package pin to stop
apt upgrade
from changing the version just for the next puppet run to change it back.