Under Solaris: when a package that I wish to insure the presence of does not exist, apply fails with the following message: err: /Stage[main]/Lsof::Lsof::Solaris/Package[SMClsof]: Could not evaluate: Unable to get information about package SMClsof because of: ["ERROR: information for \"SMClsof\" was not found\n"] The following one line change appears to fix that problem for 2.7.10. --- /usr/opt/lib/ruby/gems/1.9.1/gems/puppet-2.7.10/lib/puppet/ provider/package/sun.rb~ Wed Feb 1 19:16:12 2012 +++ /usr/opt/lib/ruby/gems/1.9.1/gems/puppet-2.7.10/lib/puppet/ provider/package/sun.rb Fri Feb 3 15:31:12 2012 @@ -106,7 +106,7 @@ } return hash rescue Puppet::ExecutionFailure => detail - return {:ensure => :absent} if detail.message =~ /information for "#{Regexp.escape(@resource[:name])}" was not found/ + return {:ensure => :absent} if detail.message =~ /information for .* was not found/ puts detail.backtrace if Puppet[:trace] raise Puppet::Error, "Unable to get information about package #{@resource[:name]} because of: #{detail}" end --david boldt PS This is my first posting on Puppet, so please pardon any customs infractions -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Hi, On 02/03/2012 10:25 PM, david boldt wrote:> > The following one line change appears to fix that problem for 2.7.10. > > ...great, thanks for sharing. Unfortunately, this will probably need to made a bug report at http://projects.puppetlabs.com/issues/. You will likely be required to get a Redmine account and click to accept a license agreement at some point down the road. Sorry for the hassle (been there myself), but everyone would be most grateful if you went through with it. Thanks!> PS This is my first posting on Puppet, so please pardon any customs > infractionsUhm...sure? :-) Seriously, though - can''t seem to find any. Cheers, Felix -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.