I ran into this problem yesterday. In the yum cookbook fileThis check doesn't seem to make sense. Essentially, "unless" means "not if" when testing if the file exists. The template resource should be idempotent without that File.exists check.
yum/providers/respository.rb, comment out the following line:
I don't understand the point of this line anyway.
On Mon, Apr 2, 2012 at 4:05
i'm trying to wield the yumrepo cookbook to control the yum repos i dist
to my systems. by default, the yum_repository resource from the yum
cookbook marks the repo as enabled. so it seems i should be able to
toggle that and make the repo disabled by default. but my attempts are
this is the yum_repository block from the yumrepo::epel recipe:
yum_repository "epel" do
description "Extra Packages for Enterprise Linux"
above the action line i've tried adding 'enabled "0"' and 'enabled 0',
but the /etc/yum.repos.d/epel.repo shows up as "enabled=1".
how do i toggle repos as enabled or disabled?
Archive powered by MHonArc 2.6.16.