Land #424, make clear_cache recipe idempotent

This commit is contained in:
Jeffrey Martin 2020-08-19 11:34:43 -05:00
commit 9ec2a6326c
No known key found for this signature in database
GPG Key ID: 0CD9BBC2AF15F171
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