Hey, I'm running Puppet 2.6.0 and somehow I can't really use the rpm provider like I was used to in previous versions. This is what my manifest looks like:
file { "/tmp/apache2-mod_security2-2.5.9-6.2.x86_64.rpm": ensure => present, owner => "root", group => "root", mode => "744", source => "puppet:///modules/$module/apache2- mod_security2-2.5.9-6.2.x86_64.rpm", before => Package["mod_security2"] } package { "mod_security2": ensure => present, source => "/tmp/apache2- mod_security2-2.5.9-6.2.x86_64.rpm", provider => "rpm" } As long as the package isn't installed the manifest works fine, but afterwards every run throws this error: Thu Aug 26 08:29:06 +0200 2010 /Stage[main]/Webserver::Apache/ Package[mod_security2]/ensure (err): change from absent to present failed: Execution of '/bin/rpm -i --oldpackage/tmp/apache2- mod_security2-2.5.9-6.2.x86_64.rpm' returned 1: package apache2- mod_security2-2.5.9-6.2.x86_64 is already installed Thu Aug 26 08:29:06 +0200 2010 /Stage[main]/Webserver::Apache/File[/ usr/lib64/apache2-prefork/mod_security2.so] (notice): Dependency Package[mod_security2] has failures: true Thu Aug 26 08:29:06 +0200 2010 /Stage[main]/Webserver::Apache/File[/ usr/lib64/apache2-prefork/mod_security2.so] (warning): Skipping because of failed dependencies Well suprise...why does puppet declare the state of a package already being installed as error? So I've played around a bit and if I use ensure => absent instead of present the manifest runs through whitout errors but also keeping the package. Bug or feature? christian -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.