X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fpostgres%2Fmanifests%2Fbackup_source.pp;h=06d2dd32e006f029462cfbbba5df67cdbec5967b;hb=1eb059797393099ff8bbfd961718a0fd46f18379;hp=81d4a8ee1c8a520d26ec868d3a2fc596cb766462;hpb=acafab70dc47db33070f0c8c1306eee0841339c9;p=mirror%2Fdsa-puppet.git diff --git a/modules/postgres/manifests/backup_source.pp b/modules/postgres/manifests/backup_source.pp index 81d4a8ee1..06d2dd32e 100644 --- a/modules/postgres/manifests/backup_source.pp +++ b/modules/postgres/manifests/backup_source.pp @@ -1,3 +1,4 @@ +# class postgres::backup_source { file { "/usr/local/bin/pg-backup-file": mode => '0555', @@ -17,4 +18,38 @@ class postgres::backup_source { 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}}": + } + } }