[chef] Re: Re: Providing specific version numbers of packages to install with yum...


Chronological Thread 
  • From: Brad Knowles < >
  • To:
  • Cc: Brad Knowles < >
  • Subject: [chef] Re: Re: Providing specific version numbers of packages to install with yum...
  • Date: Fri, 21 Oct 2011 21:48:23 -0500

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?

Thanks!

-- 
Brad Knowles 
< >
SAGE Level IV, Chef Level 0.0.1




Archive powered by MHonArc 2.6.16.

§