From 4dbcfff9882a8d521030b71134ba267fa4407833 Mon Sep 17 00:00:00 2001 From: Toby Crawley Date: Sat, 9 Oct 2021 11:23:41 -0400 Subject: [PATCH] Revert "Delete audit data > 30 days old" This reverts commit cd8a835060ef5b492883d39edfaf60091e9220ca. We aren't going to truncate audit records any longer, and will just monitor table usage to see if we should truncate in the future. See https://github.com/clojars/clojars-web/issues/812 --- aws-ansible/roles/clojars/tasks/cron.yml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/aws-ansible/roles/clojars/tasks/cron.yml b/aws-ansible/roles/clojars/tasks/cron.yml index 3102dc8..a275ae7 100644 --- a/aws-ansible/roles/clojars/tasks/cron.yml +++ b/aws-ansible/roles/clojars/tasks/cron.yml @@ -57,12 +57,3 @@ hour: "1" job: "find /tmp -name 'upload-*' -type d -mtime +3 -exec rm -rf {} +" -- name: Set clearing of audit log - become: true - cron: - name: "Clear audit log info > 30 days old" - user: "clojars" - minute: "0" - hour: "0" - job: ". ~/bin/config_env; env PGPASSWORD=$POSTGRES_PASSWORD psql -h $POSTGRES_HOST -p 5432 -U clojars -c \"delete from audit where created < (now() - interval '30 days');\"" -