Remove cron job for cleaning up archived WAL logs
authorTom Hughes <tom@compton.nu>
Mon, 18 Jun 2018 07:30:23 +0000 (08:30 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 18 Jun 2018 07:30:23 +0000 (08:30 +0100)
cookbooks/db/recipes/master.rb
cookbooks/db/templates/default/cron.erb [deleted file]

index 9b5a0ab5fafa63c671fff61e24a5311336f99cda..3fcdd7f15d1d92aaea00d82bd8af375ca8ef24d8 100644 (file)
@@ -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 (file)
index 7ff61cf..0000000
+++ /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