engineyard / ey-cookbooks-stable-v6

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cleanup of removed applications is no longer working

DalianisDim opened this issue · comments

The following recipes are using a common methodology to remove files/configuration for applications no longer installed on enviroment:

app-logs/recipes/default.rb
app/recipes/remove.rb
nginx/recipes/default.rb

Example:

(node['dna']['removed_applications'] || []).each do |dead_app|
  execute "remove-logs-for-#{dead_app}" do
    command %Q{
      rm -rf /var/log/engineyard/apps/#{dead_app}
    }
  end
end

Unfortunately, node['dna']['removed_applications'] is no longer populated on dna.json, therefore cleanup never occurs. A different approach should be used to clean up these files