- From: Jesse Campbell <
>
- To:
- Cc: Brad Knowles <
>
- Subject: [chef] Re: yum_package provider does not honor 'options "--disablerepo"' when searching available provides?
- Date: Tue, 31 Jan 2012 15:29:02 -0500
yum_package should be installing the specific version you asked for,
when you specify a version... that sounds like a bug in itself.
Have you tried turning off obsoletes processing? I found that it was
constantly messing me up for installing packages with puppet (haven't
migrated that set of systems to chef yet).
-Jesse
On Tue, Jan 31, 2012 at 14:46, Brad Knowles
<
>
wrote:
>
Folks,
>
>
So, for our upcoming production systems (CentOS 5.6 & chef-client 0.10.8),
>
we have built our own local copy of monit 5.3.2 (5.3.2-1, to be precise),
>
and put that on our internal repo. We want to force our machines to use
>
this explicit version of monit, and not anything else. However, recently
>
rpmforge posted 5.3.2-2, and now even though we try to lock down the
>
explicit version we want, yum_package keeps trying to install
>
monit-5.3.2-2.el5.rf instead of our own monit-5.3.2-1.x86_64.rpm.
>
>
>
Doing a "yum info monit" will come up with the reference to the rpmforge
>
version, but at least there we can provide a "--disablerepo=rpmforge" and
>
get it to find the version that we have on our internal repo server.
>
>
Trying to do the same thing within the yum_package provider fails, however
>
-- when searching the available provides, it still finds
>
monit-5.3.2-2.el5.rf (which is only on rpmforge), but then when it goes to
>
try to install this version it will apparently honor the
>
"--disablerepo=rpmforge" option, and then the package doesn't actually get
>
installed.
>
>
>
Okay, so I could rebuild our version of the package (which I know works the
>
way we want), and bump the version number. That will work right up to the
>
point where rpmforge does this to me again. I'm looking for a better
>
solution to this problem. Any ideas?
>
>
--
>
Brad Knowles
>
<
>
>
SAGE Level IV, Chef Level 0.0.1
Archive powered by MHonArc 2.6.16.