[chef] Re: crazy-making with yum_package and package


Chronological Thread 
  • From: Booker Bense < >
  • To:
  • Subject: [chef] Re: crazy-making with yum_package and package
  • Date: Tue, 25 Sep 2012 14:34:45 -0700

On Tue, Sep 25, 2012 at 11:42 AM,  
< >
 wrote:
>
> hi. i'm having problems trying to install a package. any help?
>
> specs: CentOS 5.8, chef-full-0.10.10-1
>
> case node[:platform]
> when "redhat", "centos", "scientific", "fedora"
>   yum_package "zrm-innobackupex" do
>     version "0.81.3-1"
>     options "--enablerepo=epel --enablerepo=palominodb"
>     action :install
>   end
> end
>
> results in:
>

> /opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.10/lib/chef/provider/package/yum.rb:1088:in
>  `install_package'
> /opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.10/lib/chef/provider/package.rb:59:in
>  `action_install'

Looking in here, it's appears that Chef builds a cache of what's
available. I suspect your problem is that the repos you want to
add aren't in the default list to search.  I don't think the version
name is the problem at all, getting Chef to cache the right repos is
where you
should start looking.

I'm just guessing from a quick look at the code, so I could be
completely off base.

- Booker C. Bense



Archive powered by MHonArc 2.6.16.

§