- From:
- To:
- Subject: [chef] Re: Re: crazy-making with yum_package and package
- Date: Tue, 25 Sep 2012 18:41:23 -0700
thanks for the tip. it seems the problem is related to this:
http://lists.opscode.com/sympa/arc/chef/2012-08/msg00057.html
yum_package doesn't seem to honor the enablerepo options i pass it.
by default, i have disabled repos "epel" and "palominodb". e.g.
host# grep enabled /etc/yum.repos.d/epel.repo
enabled=0
passing --enablerepo=epel will enable epel in runtime. but my recipe
using yum_package fails to install the package.
my recipe succeeds installing the package if i enable those 2 repos
in /etc/yum.repos.d/ by hand.
i did try "flush_cache [ :before ]" in my recipe, no joy.
it looks like this is a bug already logged here:
http://tickets.opscode.com/browse/CHEF-2427
kallen
On Tue, 25 Sep 2012, Booker Bense wrote:
>
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.