2 # See dsa-wiki input/howto/postgres-backup.creole for some documentation
4 class postgres::backup_source {
5 file { "/usr/local/bin/pg-backup-file":
7 source => "puppet:///modules/roles/postgresql_server/pg-backup-file",
9 file { "/usr/local/bin/pg-receive-file-from-backup":
11 source => "puppet:///modules/roles/postgresql_server/pg-receive-file-from-backup",
13 file { "/etc/dsa/pg-backup-file.conf":
14 content => template('roles/postgresql_server/pg-backup-file.conf.erb'),
17 ssh::keygen {'postgres': }
20 if $::hostname in [melartin, vittoria] {
21 postgres::backup_cluster { $::hostname:
25 if $::hostname in [buxtehude] {
26 postgres::backup_cluster { $::hostname:
30 postgres::backup_cluster { "${::hostname}-debbugs":
33 pg_cluster => 'debbugs',
36 if $::hostname in [danzi] {
37 postgres::backup_cluster { $::hostname:
41 postgres::backup_cluster { "${::hostname}-debconf":
44 pg_cluster => 'debconf',
48 if $::hostname in [melartin, vittoria, godard, buxtehude, danzi] {
49 postgres::backup_server::register_backup_clienthost { "backup-clienthost-${::fqdn}}":