source => 'puppet:///modules/postgres/backup_server/postgres-make-base-backups',
mode => '0555',
}
- file { '/etc/cron.d/puppet-postgres-make-base-backups':
- content => "20 0 * * 6 debbackup chronic /usr/local/bin/postgres-make-base-backups\n",
+ if $::hostname in [backuphost] {
+ file { '/etc/cron.d/puppet-postgres-make-base-backups':
+ content => "20 1 * * 0 debbackup chronic /usr/local/bin/postgres-make-base-backups\n",
+ }
+ } else {
+ file { '/etc/cron.d/puppet-postgres-make-base-backups':
+ content => "20 0 * * 6 debbackup chronic /usr/local/bin/postgres-make-base-backups\n",
+ }
}
}