+#
class postgres::backup_source {
file { "/usr/local/bin/pg-backup-file":
mode => '0555',
onlyif => '/usr/bin/getent passwd postgres > /dev/null && ! [ -e /var/lib/postgresql/.ssh/id_rsa ]'
}
}
+
+
+ if $::hostname in [melartin] {
+ postgres::backup_cluster { $::hostname:
+ pg_version => '9.6',
+ }
+
+ postgres::backup_server::register_backup_clienthost { "backup-clienthost-${::fqdn}}":
+ }
+ }
}