diff --git a/modules/gerrit/manifests/cron.pp b/modules/gerrit/manifests/cron.pp index d659110cfe..07c6103541 100644 --- a/modules/gerrit/manifests/cron.pp +++ b/modules/gerrit/manifests/cron.pp @@ -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', } } diff --git a/modules/openstack_project/manifests/gerrit.pp b/modules/openstack_project/manifests/gerrit.pp index 2e8d5a8695..48848abd94 100644 --- a/modules/openstack_project/manifests/gerrit.pp +++ b/modules/openstack_project/manifests/gerrit.pp @@ -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) {