order => '99',
}
file { '/etc/cron.d/puppet-postgres-make-base-backups': ensure => absent; }
- if $::hostname in [backuphost] {
- concat::fragment { 'dsa-puppet-stuff--porterbox-chroot-update':
- target => '/etc/cron.d/dsa-puppet-stuff',
- content => @("EOF")
- 20 1 * * 0 debbackup chronic ${$postgres::backup_server::globals::make_base_backups}
- | EOF
- }
- } else {
- concat::fragment { 'dsa-puppet-stuff--porterbox-chroot-update':
- target => '/etc/cron.d/dsa-puppet-stuff',
- content => @("EOF")
- 20 0 * * 6 debbackup chronic ${$postgres::backup_server::globals::make_base_backups}
- | EOF
- }
+ file { '/var/lib/dsa/postgres-make-base-backups':
+ ensure => directory,
+ owner => 'debbackup',
+ mode => '0755',
+ }
+ concat::fragment { 'dsa-puppet-stuff--postgres-make_base_backups':
+ target => '/etc/cron.d/dsa-puppet-stuff',
+ content => @("EOF")
+ */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 |>>