Issue #3499 has been updated by Thomas Bellman.

Status changed from Unreviewed to Needs more information

The issue is surely that your resource has its name set to "openssh-client", 
while the package that gets installed is named "openssh-clients" (note the 
missing plural s at the end).  Since Puppet can't find any installed package 
named "openssh-client", it will rightly believe that the package you point to 
isn't installed.  Puppet doesn't know what the package inside the RPM file your 
provide is actually named, but relies on you specifying a correct name.

Try fixing your resource title and see if that helps.
----------------------------------------
Bug #3499: RPM provider keeps trying to install the same version over and over
http://projects.puppetlabs.com/issues/3499

Author: Ashley Penney
Status: Needs more information
Priority: Normal
Assigned to: 
Category: 
Target version: 
Affected version: 0.25.4
Keywords: rpm provider package
Branch: 


I looked into the code but swiftly got lost and decided to just report it 
instead:


package { "openssh-client":
            ensure => present,
            provider => rpm,
            source => 
"http://puppet/packages/openssh-clients-5.1p1-3.x86_64.rpm";,
            require => Package["openssh"],
}

Results in:

err: //ssh::sftp/Package[openssh-client]/ensure: change from absent to present 
failed: Execution of '/bin/rpm -i --oldpackage 
http://puppet/packages/openssh-clients-5.1p1-3.x86_64.rpm' returned 1:    
package openssh-clients-5.1p1-3.x86_64 is already installed

-sh-3.2# rpm -qa | grep openssh-cl
openssh-clients-5.1p1-3

I suspect the issue here is that it is matching openssh-clients-5.1p1-3.x86_64 
(including the .x86_64) against openssh-clients-5.1p1-3 and deciding that the 
package is uninstalled and trying to install it.  I can't confirm this in the 
code but this is constantly annoying and causes my reporting to look a mess as 
it fails time and time again.





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