From 663b7f57f6a26df59a4b8d90ad4ce029f99ee853 Mon Sep 17 00:00:00 2001
From: Clark Boylan <clark.boylan@gmail.com>
Date: Wed, 25 Jan 2017 11:22:09 -0800
Subject: [PATCH] Reduce local db backup retention to 10 days

This reduces overall backups by a third saving space on local disk. This
puts a greater reliance on offsite backups but we need those working
anyways.

Change-Id: I0397092646866fad1b828032a362f6814b88f26e
---
 modules/openstack_project/manifests/etherpad.pp | 1 +
 modules/openstack_project/manifests/gerrit.pp   | 1 +
 2 files changed, 2 insertions(+)

diff --git a/modules/openstack_project/manifests/etherpad.pp b/modules/openstack_project/manifests/etherpad.pp
index 66832dd4c4..92c6dcaed9 100644
--- a/modules/openstack_project/manifests/etherpad.pp
+++ b/modules/openstack_project/manifests/etherpad.pp
@@ -41,6 +41,7 @@ class openstack_project::etherpad (
     database_host     => $mysql_host,
     database_user     => $mysql_user,
     database_password => $mysql_password,
+    num_backups       => '10',
     require           => Class['etherpad_lite'],
   }
 
diff --git a/modules/openstack_project/manifests/gerrit.pp b/modules/openstack_project/manifests/gerrit.pp
index b8b0fecd4c..dccddee3e7 100644
--- a/modules/openstack_project/manifests/gerrit.pp
+++ b/modules/openstack_project/manifests/gerrit.pp
@@ -203,6 +203,7 @@ class openstack_project::gerrit (
     database_user     => 'gerrit2',
     database_password => $mysql_password,
     dest_dir          => '/home/gerrit2/mysql_backups',
+    num_backups       => '10',
     require           => Class['::gerrit'],
   }