Skip to content

Commit 1970335

Browse files
committed
centos7: Don't use Chef's epel enable
The Centos7 AMI already has the epel repo enabled and something about the Chef receipe to enable the repo ends up irritating yum (complaining about not being able to find the data files for the repo). Signed-off-by: Brian Barrett <[email protected]>
1 parent d900f4f commit 1970335

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

recipes/base_install.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
case node['platform_family']
1717
when 'rhel'
1818
include_recipe 'yum'
19-
include_recipe "yum-epel"
19+
if node['platform_version'].to_i < 7
20+
include_recipe "yum-epel"
21+
end
2022
if node['platform'] == 'redhat'
2123
execute 'yum-config-manager-rhel' do
2224
command "yum-config-manager --enable #{node['cfncluster']['rhel']['extra_repo']}"

0 commit comments

Comments
 (0)