Issue #5855 has been updated by Daniel Pittman.

Assignee deleted (Daniel Pittman)

----------------------------------------
Bug #5855: FreeBSD package provider broken
https://projects.puppetlabs.com/issues/5855#change-92420

* Author: Fredrik Eriksson
* Status: Closed
* Priority: Normal
* Assignee: 
* Category: FreeBSD
* Target version: 2.6.5
* Affected Puppet version: 2.6.4
* Keywords: 
* Branch: 2.6.next
----------------------------------------
Since I couldn't find any other reports about problems with the FreeBSD 
provider there is probably something in my environment that triggers this. 
Nevertheless:

uname -a: 
    FreeBSD localhost 8.1-RELEASE-p2 FreeBSD 8.1-RELEASE-p2 #0: Thu Dec 23 
09:32:49 UTC 2010     localhost:/usr/obj/usr/src/sys/GENERIC  amd64

pkg_info:

    facter-1.5.8
    puppet-2.6.4
    ruby-1.8.7.302,1


When puppet tries to install packages via the freebsd provider it fails with 
the following error message:
    Wed Jan 12 08:36:16 +0100 2011 
/Stage[main]/Baseconf::Packages/Package[vim-lite]/ensure (err): change from 
absent to present failed: 
    Could not set 'present on ensure: undefined method `withenv' for 
#<Puppet::Type::Package::ProviderFreebsd:0x80265c548> at 
/manifests/packages.pp:28

I found that this was a similar error as in bug #3093, so I wrote the attached 
patch which solves the problem for me.



-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to