make clear_cache recipe idempotent

This commit is contained in:
Dave Eargle 2019-10-29 13:59:28 -06:00
parent 6a17501824
commit 7d054caae4
1 changed files with 5 additions and 6 deletions

View File

@ -4,9 +4,8 @@
#
# Copyright:: 2017, Rapid7, All Rights Reserved.
bash 'clear cache and backup that might contain sensitive information' do
code <<-EOH
cd /var/chef
rm -R *
EOH
end
# 'clear cache and backup that might contain sensitive information' do
directory '/var/chef' do
action :delete
recursive true
end