Skip to content

Commit

Permalink
Replace include epel recipe by yum_repository provider
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelaferreira committed Mar 14, 2016
1 parent 16cd197 commit 3c20464
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,11 @@
only_if { node['platform_family'] == 'debian' }
end
when 'centos'
include_recipe 'yum-epel::default'
centos_version = node['platform_version'].to_i
yum_repository 'epel' do
description 'Extra Packages for Enterprise Linux'
mirrorlist "http://mirrors.fedoraproject.org/mirrorlist?repo=epel-#{centos_version}&arch=$basearch"
gpgkey "http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-#{centos_version}"
action :create
end
end

0 comments on commit 3c20464

Please # to comment.