summaryrefslogtreecommitdiff
path: root/kitchen-tests
diff options
context:
space:
mode:
Diffstat (limited to 'kitchen-tests')
-rw-r--r--kitchen-tests/cookbooks/end_to_end/recipes/default.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/default.rb b/kitchen-tests/cookbooks/end_to_end/recipes/default.rb
index 7c9856d909..6d95f4471b 100644
--- a/kitchen-tests/cookbooks/end_to_end/recipes/default.rb
+++ b/kitchen-tests/cookbooks/end_to_end/recipes/default.rb
@@ -17,6 +17,13 @@ if platform_family?("rhel", "fedora", "amazon")
include_recipe "selinux::disabled"
end
+bash "disable yum metadata caching" do
+ code <<-EOH
+ echo http_caching=packages >> /etc/yum.conf
+ EOH
+ only_if { File.exist?("/etc/yum.conf") && File.readlines("/etc/yum.conf").grep(/http_caching=packages/).empty? }
+end
+
yum_repository "epel" do
enabled true
description "Extra Packages for Enterprise Linux #{node['platform_version'].to_i} - $basearch"