purge => true,
force => true,
recurse => true,
- notify => Exec['update dsa-check-backuppg-manual.conf'],
+ notify => Exec['update dsa-check-backuppg.conf'],
}
- file { '/etc/dsa/postgresql-backup/dsa-check-backuppg.conf.d/manual.conf':
- content => template('postgres/backup_server/dsa-check-backuppg-manual.conf.erb'),
- notify => Exec['update dsa-check-backuppg-manual.conf']
+ file { '/etc/dsa/postgresql-backup/dsa-check-backuppg.conf.d/globals.conf':
+ content => template('postgres/backup_server/dsa-check-backuppg-globals.conf.erb'),
+ notify => Exec['update dsa-check-backuppg.conf']
}
File<<| tag == $postgres::backup_server::globals::tag_dsa_check_backupp |>>
- exec { 'update dsa-check-backuppg-manual.conf':
+ exec { 'update dsa-check-backuppg.conf':
command => @(EOF),
perl -MYAML=LoadFile,Dump -MHash::Merge::Simple=merge -E 'say Dump(merge(map{LoadFile($_)}@ARGV))' /etc/dsa/postgresql-backup/dsa-check-backuppg.conf.d/*.conf > /etc/nagios/dsa-check-backuppg.conf
| EOF