Merge "Fix gerrit database backups"

This commit is contained in:
Jenkins 2014-05-07 16:24:16 +00:00 committed by Gerrit Code Review
commit 1412a54c10
2 changed files with 6 additions and 6 deletions
modules
gerrit/manifests
openstack_project/manifests

View File

@ -23,10 +23,7 @@ class gerrit::cron(
}
cron { 'removedbdumps':
ensure => 'absent',
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,8 +191,11 @@ class openstack_project::gerrit (
require => Class[openstack_project::server],
}
mysql_backup::backup { 'gerrit':
require => Class['::gerrit'],
mysql_backup::backup_remote { 'gerrit':
database_host => $mysql_host,
database_user => 'gerrit2',
database_password => $mysql_password,
require => Class['::gerrit'],
}
if ($testmode == false) {