diff options
author | Bryan McLellan <btm@loftninjas.org> | 2019-04-16 11:45:20 -0400 |
---|---|---|
committer | Bryan McLellan <btm@loftninjas.org> | 2019-04-16 11:45:20 -0400 |
commit | 1e2c2d5ec2cb4a77ec0486f8d491276be9739edf (patch) | |
tree | d102fe802227149a7bf11a0d109722b90fbc228f | |
parent | 7f62eff6d676365c9e1a984728e9b02bbd74d3ae (diff) | |
download | chef-1e2c2d5ec2cb4a77ec0486f8d491276be9739edf.tar.gz |
disable yum metadata caching for end-to-end centos/rhel testsbtm/locale-fix-custom
Signed-off-by: Bryan McLellan <btm@loftninjas.org>
-rw-r--r-- | kitchen-tests/cookbooks/end_to_end/recipes/default.rb | 7 |
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..5ed9d0fd67 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 + not_if { File.readlines("/etc/yum.conf").grep(/http_caching=packages/).any? } +end + yum_repository "epel" do enabled true description "Extra Packages for Enterprise Linux #{node['platform_version'].to_i} - $basearch" |