+#
+# See dsa-wiki input/howto/postgres-backup.creole for some documentation
+#
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, vittoria] {
+ postgres::backup_cluster { $::hostname:
+ pg_version => '9.6',
+ }
+ }
+ if $::hostname in [buxtehude] {
+ postgres::backup_cluster { $::hostname:
+ pg_version => '9.6',
+ pg_port => 5433,
+ }
+ postgres::backup_cluster { "${::hostname}-debbugs":
+ pg_version => '9.6',
+ pg_port => 5441,
+ pg_cluster => 'debbugs',
+ }
+ }
+ if $::hostname in [danzi] {
+ postgres::backup_cluster { $::hostname:
+ pg_version => '9.6',
+ pg_port => 5433,
+ }
+ postgres::backup_cluster { "${::hostname}-debconf":
+ pg_version => '9.6',
+ pg_port => 5434,
+ pg_cluster => 'debconf',
+ }
+ }
+
+ if $::hostname in [melartin, vittoria, godard, buxtehude, danzi] {
+ postgres::backup_server::register_backup_clienthost { "backup-clienthost-${::fqdn}}":
+ }
+ }
}