Issue #23172 has been reported by Martijn Grendelman.
----------------------------------------
Bug #23172: Dpkg package provider misbehaving for held package with specific
version
https://projects.puppetlabs.com/issues/23172
* Author: Martijn Grendelman
* Status: Unreviewed
* Priority: Normal
* Assignee:
* Category:
* Target version:
* Affected Puppet version: 3.3.2
* Keywords:
* Branch:
----------------------------------------
Judging from this StackOverflow question [1], I am running into a long-standing
problem with the dpkg package provder. I have packages pinned to specific
versions in Puppet with
ensure => 'version_string'
and at the same time have put these packages on 'hold' with dpkg to prevent
unintended manual upgrades. Now, on every Puppet run, I get this:
Package[mypackage]/ensure: ensure changed 'held' to 'version_string'
I assume this is because of the following code in provider/package/dpkg.rb,
line 92 (in Puppet 3.3.2-1puppetlabs1):
hash[:ensure] = :held if hash[:desired] == 'hold'
which sets the current 'ensure' to 'held', where the desired 'ensure' is the
package version. It seems to me that the 'ensure' parameter should not be
(ab)used to implement the 'holdable' feature.
[1]
http://serverfault.com/questions/370266/puppet-using-ensure-with-package-version-and-held
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.