From 57e407a95900680c57e6c4217a2cddb99c1bd468 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 18 Jun 2018 08:30:23 +0100 Subject: [PATCH] Remove cron job for cleaning up archived WAL logs --- cookbooks/db/recipes/master.rb | 7 ++----- cookbooks/db/templates/default/cron.erb | 4 ---- 2 files changed, 2 insertions(+), 9 deletions(-) delete mode 100644 cookbooks/db/templates/default/cron.erb diff --git a/cookbooks/db/recipes/master.rb b/cookbooks/db/recipes/master.rb index 9b5a0ab5f..3fcdd7f15 100644 --- a/cookbooks/db/recipes/master.rb +++ b/cookbooks/db/recipes/master.rb @@ -83,9 +83,6 @@ postgresql_extension "btree_gist" do only_if { node[:postgresql][:clusters][node[:db][:cluster]] && node[:postgresql][:clusters][node[:db][:cluster]][:version] >= 9.0 } end -template "/etc/cron.daily/rails-db" do - source "cron.erb" - owner "root" - group "root" - mode 0o755 +file "/etc/cron.daily/rails-db" do + action :delete end diff --git a/cookbooks/db/templates/default/cron.erb b/cookbooks/db/templates/default/cron.erb deleted file mode 100644 index 7ff61cff3..000000000 --- a/cookbooks/db/templates/default/cron.erb +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -# Cleanup archive directory - keep 2 weeks of WALs -find -L /store/postgresql/archive -mtime +14 -print0 | xargs -0r rm -- 2.39.5