Skip to content
Permalink
Browse files

Modified the repo and gpg yum_repository attributes to allow installs…

… to complete for different RHEL/CentOS versions.
  • Loading branch information...
Azrael808 committed Jun 19, 2015
1 parent 9e36fa2 commit 0ade878adb5bd5ed2da177321ad8d41c3e8c9804
Showing with 2 additions and 2 deletions.
  1. +2 −2 recipes/default.rb
@@ -23,8 +23,8 @@
if node[:dirsrv][:use_yum_epel] and platform_family?("rhel")
yum_repository 'epel' do
description 'Extra Packages for Enterprise Linux'
mirrorlist 'http://mirrors.fedoraproject.org/mirrorlist?repo=epel-6&arch=$basearch'
gpgkey 'http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6'
mirrorlist "http://mirrors.fedoraproject.org/mirrorlist?repo=epel-#{node[:platform_version].split(".").first}&arch=$basearch"
gpgkey "http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-#{node[:platform_version].split(".").first}"
action :create
end
end

0 comments on commit 0ade878

Please sign in to comment.
You can’t perform that action at this time.