- From: Brad Knowles <
>
- To:
- Cc: Brad Knowles <
>
- Subject: [chef] Re: Re: yum_package provider does not honor 'options "--disablerepo"' when searching available provides?
- Date: Tue, 31 Jan 2012 16:46:22 -0600
On Jan 31, 2012, at 3:44 PM, Matthew Kent wrote:
>
With a specific version I believe so long as yum can see it you should
>
be able to install it with Chef. Check that it can by adding by
>
adding showdupesfromrepos=1 to yum.conf and running 'yum list
>
available'. Note this only applies to :install, if you are passing
>
:upgrade you are going to get the latest version.
I had enabled showdupesfromrepos, and on the command-line I could see
multiple versions with a "yum info", but there was only ever one version
showing up within a chef-client run.
>
The proper solution for this though is to run (and love) yum
>
priorities. Give your local repository a higher priority than rpmforge
>
- your version will effectively mask the newer one. This is a better
>
long term solution then someone accidentally upgrading it down the
>
road.
I had gone with yum priorities previously, but so far as I can tell the
yumrepo cookbook doesn't give you a way to implement that sort of thing. It
may be time to ditch the yumrepo cookbook and simply put everything into the
main yum cookbook that we had been doing through yumrepo.
I guess I need to take a closer look at the yum cookbook.
--
Brad Knowles
<
>
SAGE Level IV, Chef Level 0.0.1
Archive powered by MHonArc 2.6.16.