class postgres::backup_server {
include postgres::backup_server::globals
+ ensure_packages ( [
+ 'libhash-merge-simple-perl',
+ 'libyaml-perl',
+ 'python-yaml',
+ 'pigz',
+ 'postgresql-client',
+ 'postgresql-client-9.6',
+ ], {
+ ensure => 'installed'
+ })
+
####
# Regularly pull base backups
#
- ensure_packages ( "postgresql-client-9.6", { ensure => 'installed' })
-
concat { $postgres::backup_server::globals::make_base_backups:
mode => '0555',
}
notify => Exec['update dsa-check-backuppg-manual.conf']
}
File<<| tag == $postgres::backup_server::globals::tag_dsa_check_backupp |>>
- ensure_packages ( "libhash-merge-simple-perl", { ensure => 'installed' })
exec { "update dsa-check-backuppg-manual.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