- From: Jeremy Koerber <
>
- To:
- Subject: [chef] possible to pass options to yum on package install
- Date: Wed, 27 Mar 2013 14:39:28 -0700
Hi,
I have this in a recipe:
package "tomcat7" do
action :install
options "--enablerepo=amzn-main"
end
but the options are not being passed to yum and the package fails to install because it isn't found in my regular yum repos that are enabled by default. I can't enable the amzn-main repo by default because then the system starts using it for everything, and I end up with some messy dependency conflicts. Plus, I strongly prefer to just use the CentOS-Base repo wherever possible.
So.. Looking at
http://docs.opscode.com/resource_package.html and I see:
options
Additional options that are added to the underlying package command.
Can be used with APT, dpkg, Gentoo, RPM Package Manager, and RubyGems.
Default value:
nil.
So that would explain why Yum isn't getting the options passed to it. So my questions are: is there a way to do this, and why can't chef pass options to yum just like APT?
Thanks much for any help..
Jeremy
- [chef] possible to pass options to yum on package install, Jeremy Koerber, 03/27/2013
Archive powered by MHonArc 2.6.16.