Add root cron jobs to gerrit

These were managed by puppet and got missed in the original
transition.

Change-Id: Ica1e6cf1ccbcc66e58fcb1f47748022dc03aa8b8
This commit is contained in:
Monty Taylor 2020-04-10 13:39:33 -05:00
parent c0fe2bb3d4
commit 38cb5da4bb

View File

@ -316,6 +316,21 @@
minute: 17
hour: 4
- name: Set up cron job to track upstream
cron:
name: track-upstream
job: '/usr/local/bin/track-upstream'
user: root
minute: 42
- name: Set up cron job to back up gerrit db
cron:
name: gerrit-backup
user: root
hour: 0
minute: 0
job: '/usr/bin/mysqldump --defaults-file=/root/.gerrit_db.cnf --opt --ignore-table mysql.event --all-databases --single-transaction | gzip -9 > /home/gerrit2/mysql_backups/gerrit.sql.gz'
# Gerrit rotates their own logs, but doesn't clean them out
# Delete logs older than a month
- name: Set up cron job to clean old gerrit logs