Skip to content

Commit

Permalink
Merge pull request #287 from databus23/patch-3
Browse files Browse the repository at this point in the history
redhat 7 does not need the epel repository
  • Loading branch information
bflad committed Apr 14, 2015
2 parents 8ab9473 + 32d5f7f commit 5ba524b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion recipes/package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

case node['platform']
when 'amazon', 'centos', 'fedora', 'redhat'
include_recipe 'yum-epel' if %w(centos redhat).include?(node['platform'])
include_recipe 'yum-epel' if node['platform'] == 'centos'
include_recipe 'yum-epel' if node['platform'] == 'redhat' && node['platform_version'].to_f < 7

package p do
version node['docker']['version']
Expand Down

0 comments on commit 5ba524b

Please sign in to comment.