concat::fragment { 'dsa-puppet-stuff--postgres-make_base_backups':
target => '/etc/cron.d/dsa-puppet-stuff',
content => @("EOF")
- */10 * * * * debbackup chronic ${$postgres::backup_server::globals::make_base_backups}
+ */30 * * * * debbackup sleep $(( RANDOM \% 1200 )); chronic ${$postgres::backup_server::globals::make_base_backups}
| EOF
}
notify => Exec['update dsa-check-backuppg-manual.conf']
}
file { '/etc/dsa/postgresql-backup/dsa-check-backuppg.conf.d/moszumanska.conf':
- ensure => ($::hostname in [backuphost]) ? {
- true => 'absent',
- default => 'present'
- },
- content => @(EOF),
- ---
- backups:
- moszumanska:
- main:
- | EOF
+ ensure => 'absent',
notify => Exec['update dsa-check-backuppg-manual.conf']
}
File<<| tag == $postgres::backup_server::globals::tag_dsa_check_backupp |>>