make clear_cache recipe idempotent

This commit is contained in:
Dave Eargle 2019-10-29 13:59:28 -06:00
parent 6a17501824
commit 7d054caae4

View File

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