Fix gerrit database backups

The gerrit database is now remote, or at least we have a hostname
for it, so we should use the backup_remote class. Also, we don't
make the dbbackups files anymore, so stop trying to compress them.

Change-Id: Iddbaaef9b9fd089f074abeeb988f7cd052c80d25
This commit is contained in:
Monty Taylor 2014-05-02 12:28:19 -07:00
parent 79cd2bd745
commit 470c3e45fa
2 changed files with 6 additions and 6 deletions

View File

@ -23,10 +23,7 @@ class gerrit::cron(
} }
cron { 'removedbdumps': cron { 'removedbdumps':
ensure => 'absent',
user => 'gerrit2', user => 'gerrit2',
hour => '5',
minute => '1',
command => 'find /home/gerrit2/dbupdates/ -name "*.sql.gz" -mtime +30 -exec rm -f {} \;',
environment => 'PATH=/usr/bin:/bin:/usr/sbin:/sbin',
} }
} }

View File

@ -191,7 +191,10 @@ class openstack_project::gerrit (
require => Class[openstack_project::server], require => Class[openstack_project::server],
} }
mysql_backup::backup { 'gerrit': mysql_backup::backup_remote { 'gerrit':
database_host => $mysql_host,
database_user => 'gerrit2',
database_password => $mysql_password,
require => Class['::gerrit'], require => Class['::gerrit'],
} }