- From: eric <
>
- To:
- Subject: [chef] Re: Enabling/disabling yum repos
- Date: Tue, 21 Oct 2014 09:40:29 -0700 (PDT)
I see that we have some config from a few years ago that does this
too...what's
the right way to do enable/disable repos?
bash "enable-rpmforge-extras" do
user "root"
cwd "/tmp"
code <<-EOH
/usr/bin/yum-config-manager --enable rpmforge-extras
EOH
# don't do this if it's already enabled
not_if "/usr/bin/yum-config-manager rpmforge-extras |grep 'enabled = True'"
action :run
end
- [chef] Re: Enabling/disabling yum repos, eric, 10/21/2014
Archive powered by MHonArc 2.6.16.