class postgres::backup_source {
file { '/usr/local/bin/pg-backup-file':
mode => '0555',
- source => 'puppet:///modules/roles/postgresql_server/pg-backup-file',
- }
- file { '/usr/local/bin/pg-receive-file-from-backup':
- mode => '0555',
- source => 'puppet:///modules/roles/postgresql_server/pg-receive-file-from-backup',
+ source => 'puppet:///modules/postgres/backup_source/pg-backup-file',
}
file { '/etc/dsa/pg-backup-file.conf':
- content => template('roles/postgresql_server/pg-backup-file.conf.erb'),
+ content => template('postgres/backup_source/pg-backup-file.conf.erb'),
}
- ssh::keygen {'postgres': }
-
-
- 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',
- }
+ file { '/usr/local/bin/pg-receive-file-from-backup':
+ mode => '0555',
+ source => 'puppet:///modules/postgres/pg-receive-file-from-backup',
}
- if $::hostname in [godard, danzi] {
- postgres::backup_server::register_backup_clienthost { "backup-clienthost-${::fqdn}}":
- }
- }
+ ssh::keygen {'postgres': }
}