What happens if you just do action :upgrade?
Adam
--
On Tue, Dec 8, 2009 at 6:39 PM, Jacobo García < " target="_blank"> > wrote:
> Hi,
> I'm working on a chef Ruby Enterprise Cookbook that uses Brightbox apt
> repository in case that the machine that is going to be installed is ubuntu
> 8.04. The recipe goes like this:
> First I add brightbox sources.list file and perform apt-get update
> Then I declare the package libruby-1.8 with the following lines:
> package "libruby-1.8" do
> action :install
> action :upgrade
> end
> But chef is not working as I expected and it stays on not installing ruby.
> In the log there's the following information:
> [Tue, 08 Dec 2009 21:21:19 -0500] INFO: Ran execute[apt-get update]
> successfully
> [Tue, 08 Dec 2009 21:21:19 -0500] DEBUG: Processing package[libruby-1.8]
> [Tue, 08 Dec 2009 21:21:19 -0500] DEBUG: package[libruby-1.8] using
> Chef::Provider::Package::Apt
> [Tue, 08 Dec 2009 21:21:19 -0500] DEBUG: Checking apt-cache policy for
> libruby-1.8
> [Tue, 08 Dec 2009 21:21:19 -0500] DEBUG: Saving the current state of node
> ubuntu_localdomain
> [Tue, 08 Dec 2009 21:21:19 -0500] DEBUG: Sending HTTP Request via PUT to
> /nodes/ubuntu_localdomain
> Also apt-cache policy libruby1.8 shows:
> libruby1.8:
> Installed: 1.8.6.111-2ubuntu1.3
> Candidate: 1.8.6.20090610-0bbox1
> Version table:
> 1.8.6.20090610-0bbox1 0
> 500 http://apt.brightbox.net hardy/rubyee Packages
> *** 1.8.6.111-2ubuntu1.3 0
> 500 http://us.archive.ubuntu.com hardy-updates/main Packages
> 500 http://security.ubuntu.com hardy-security/main Packages
> 100 /var/lib/dpkg/status
> 1.8.6.111-2ubuntu1 0
> 500 http://us.archive.ubuntu.com hardy/main Packages
> What am I missing?
> Thanks.
> Jacobo García López de Araujo
> blog: http://robotplaysguitar.com
> http://workingwithrails.com/person/13395-jacobo-garc-a
>
>
Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-7449 E: " target="_blank">
Archive powered by MHonArc 2.6.16.