Make mysql backup crons quiet.

* modules/mysql_backup/manifests/backup.pp: Ignore the mysql.event table
when dumping all databases so that cron jobs are silent and do not
output a warning that this table was not dumped.

Change-Id: I5f7065d4184ca2ecd997bfc3d1beefee47c12acb
This commit is contained in:
Clark Boylan 2013-08-19 17:30:00 -07:00
parent 91774b0d10
commit 36b3385e61

View File

@ -28,7 +28,7 @@ define mysql_backup::backup (
cron { "${name}-backup":
ensure => present,
command => "/usr/bin/mysqldump --defaults-file=${defaults_file} --opt --all-databases | gzip -9 > ${dest_dir}/${name}.sql.gz",
command => "/usr/bin/mysqldump --defaults-file=${defaults_file} --opt --ignore-table mysql.event --all-databases | gzip -9 > ${dest_dir}/${name}.sql.gz",
minute => $minute,
hour => $hour,
weekday => $day,