[chef] yum package resource/provider


Chronological Thread 
  • From: Tristan Sloughter < >
  • To:
  • Subject: [chef] yum package resource/provider
  • Date: Wed, 9 Mar 2011 10:22:29 -0600
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=dLasaVW+iNlkzRej1DBFPItV3OM+Ueb2mv2OSKThcXNKa0Pc3/z/DZcqbFNAmyhSuJ GtcKCwja9NjVRZiDF9MVCsxTqlmb3tp7jO/elhzLTnix7rvy83bSLQHRhr7flIqapkQ8 vPwz2bV2tXAuh3Wm1Uv+vfBV46ytpCg9vn6x0=

I've run into an interesting problem with the yum package installer. In my recipe I have:

package "Xvfb" do
  action :install
end

This fails with:

/usr/lib64/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/provider/package.rb:50:in `action_install': No version specified, and no candidate version available for Xvfb (Chef::Exceptions::Package)

But if I simply do :

$ sudo yum install Xvfb

It installs fine.

I saw bugs in the Chef issues tracker but they seemed to say they were fixed and from 2009.

My client is 0.9.14 but the server is 0.9.8.

Tristan




Archive powered by MHonArc 2.6.16.

§