Skip to content

Commit

Permalink
Merge branch 'cook-104'
Browse files Browse the repository at this point in the history
* cook-104:
  workaround ohai-75 not being in stable released ohai gem
  • Loading branch information
jtimberman committed May 14, 2009
2 parents 29d7ddc + a8a65af commit ca9e5e3
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions perl/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,19 @@

remote_file "CPAN-Config.pm" do
case node[:platform]
when "centos"
path "/usr/lib/perl5/#{node[:languages][:perl][:version]}/CPAN/Config.pm"
when "centos","redhat"
path "/usr/lib/perl5/5.8.8/CPAN/Config.pm"
else
path "/etc/perl/CPAN/Config.pm"
end
source "Config-#{node[:languages][:perl][:version]}.pm"
# workaround until change for OHAI-75 is in stable release.
# source "Config-#{node[:languages][:perl][:version]}.pm"
case node[:platform]
when "debian","ubuntu"
source "Config-5.10.0.pm"
when "centos","redhat"
source "Config-5.8.8.pm"
end
owner "root"
group "root"
mode 0644
Expand Down

0 comments on commit ca9e5e3

Please sign in to comment.