[chef] Re: Re: package[yum-allowdowngrade] exception


Chronological Thread 
  • From: Xianfeng Yuan < >
  • To: " " < >
  • Subject: [chef] Re: Re: package[yum-allowdowngrade] exception
  • Date: Fri, 19 Oct 2012 16:16:22 -0700
  • Accept-language: en-US
  • Acceptlanguage: en-US

Yes. The following is the recipe:

%w{ yum-allowdowngrade }.each do |pkg|
   package pkg do
      action :install
   end
end





On 10/19/12 4:13 PM, "Paul Graydon" 
< >
 wrote:

>This quoted section is the most relevant.  Yum has returned an error to
>Chef telling it that it can't find a valid baseurl for the repository.
>
>If you look in /etc/yum.repos.d/epel.repo you should see a line like:
>
>baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
>
>On my systems that's actually commented out and mirrorlist is being used
>by preference:
>mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$ba
>search
>
>I'd suggest double checking on the box itself and seeing if "yum update"
>will work or if it throws back the same error.
>
>Did you install epel using Chef or one of it's cookbooks?
>
>Paul
>
>On 10/19/2012 12:45 PM, 
>
> wrote:
>> #<Process::Status: pid=1626,exited(1)> - returns: yum-dump Repository
>>Error:
>> Cannot find a valid baseurl for repo: epel
>




Archive powered by MHonArc 2.6.16.

§