Issue #1720 has been updated by Toomas Pelberg.

Hello,

I also ran into this issue and patched the yum package provider to recognize 
installonlypkg's and provide some special handling for them. Notably the 
downgrade/update handling. Patched in: 
https://github.com/toomasp/puppet/tree/PUPPET-1720

According to the spec, it's passing current tests and in my own testing it 
didn't break anything else either, just fixes the installonlypkg's issue.
----------------------------------------
Bug #1720: The package resource type doesn't notice installed packages when 
more than one is installed
https://projects.puppetlabs.com/issues/1720#change-75473

Author: Trevor Hemsley
Status: Accepted
Priority: Normal
Assignee: 
Category: package
Target version: 2.7.x
Affected Puppet version: 0.24.6
Keywords: 
Branch: 


On Redhat systems using yum as the package provider, we have a class that says

<pre>
class hpasm {
# This class is meant to keep dependancies for the correct build of the various 
hp/compaq components
        package {"kernel-smp-devel":
                ensure => "2.6.9-67.0.1.EL",
        }
}
</pre>

and rpm -q kernel-smp-devel reports

kernel-smp-devel-2.6.9-55.0.9.EL
kernel-smp-devel-2.6.9-55.0.2.EL
kernel-smp-devel-2.6.9-67.0.1.EL
kernel-smp-devel-2.6.9-67.0.7.EL
kernel-smp-devel-2.6.9-67.0.20.EL
kernel-smp-devel-2.6.9-78.0.1.EL

as installed. However puppetd --test --noop says

notice: //Node[basicnode]/hpasm/Package[kernel-smp-devel]/ensure: is 
2.6.9-55.0.9.EL, should be 2.6.9-67.0.1.EL (noop)

I think this is probably a bug since puppet seems to stop looking after the 
first rpm it finds


-- 
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to