- From: AJ Christensen <
>
- To:
- Subject: [chef] Re: Re: Re: Providing specific version numbers of packages to install with yum...
- Date: Sat, 22 Oct 2011 16:25:42 +1300
On 22 October 2011 15:48, Brad Knowles
<
>
wrote:
>
On Oct 21, 2011, at 6:37 PM, Adam Jacob wrote:
>
>
> Do you have the 'version' statement in the package resource?
>
>
For yum, I don't think so. The only things I have in
>
cookbooks/yum/resources are key.rb and repository.rb. Stripping out the
>
.svn hierarchies, the README.md, any .json files, and all comments in the
>
remaining files, I don't find many references to the word "version"
>
anywhere in the yum cookbook:
>
>
% grep -ir version * | egrep -vi '(.svn|README|.json|:#)'
>
attributes/default.rb:default['yum']['epel_release'] = case
>
node['platform_version'].to_i
>
metadata.rb:version "0.1.3"
>
providers/key.rb: if node[:platform_version].to_i <= 5
>
providers/key.rb: elsif node[:platform_version].to_i >= 6
>
recipes/epel.rb:major = node['platform_version'].to_i
>
recipes/yum.rb: source "yum-rhel#{node[:platform_version].to_i}.conf.erb"
>
>
>
Or did I completely misunderstand the question somehow?
Indeed.
yum_package "someshit" do
version "1.2.3-whatever"
end
–AJ
>
>
Thanks!
>
>
--
>
Brad Knowles
>
<
>
>
SAGE Level IV, Chef Level 0.0.1
>
>
Archive powered by MHonArc 2.6.16.