- ssh::keygen {'postgres': }
-
-
- if $::hostname in [melartin, vittoria] {
- postgres::backup_cluster { $::hostname:
- pg_version => '9.6',
- }
- }
- if $::hostname in [buxtehude] {
- postgres::backup_cluster { $::hostname:
- pg_version => '11',
- pg_port => 5433,
- }
- postgres::backup_cluster { "${::hostname}-debbugs":
- pg_version => '11',
- 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}-tracker":
- pg_version => '9.6',
- pg_port => 5432,
- pg_cluster => 'tracker',
- }
- postgres::backup_cluster { "${::hostname}-debconf":
- pg_version => '9.6',
- pg_port => 5434,
- pg_cluster => 'debconf',
- }
- postgres::backup_cluster { "${::hostname}-wannabuild":
- pg_version => '9.6',
- pg_port => 5436,
- pg_cluster => 'wannabuild',
- }
- }
-
- if $::hostname in [postgresql-manda-01] {
- postgres::backup_cluster { "${::hostname}-bacula":
- pg_version => '11',
- pg_port => 5432,
- pg_cluster => 'bacula',
- }
+ file { '/usr/local/bin/pg-receive-file-from-backup':
+ mode => '0555',
+ source => 'puppet:///modules/postgres/pg-receive-file-from-backup',