X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fpostgres%2Fmanifests%2Fbackup_source.pp;h=912571bb749ac22a7c5c0db1edd71eedfe5fa0be;hb=cb99d997e736f428f4f1264a0894e30b5302ef3d;hp=7bc06844cde37356a079f9dee71d080b50a23519;hpb=1ec9655400103e5dddacc921fe0b996004ba065c;p=mirror%2Fdsa-puppet.git diff --git a/modules/postgres/manifests/backup_source.pp b/modules/postgres/manifests/backup_source.pp index 7bc06844c..912571bb7 100644 --- a/modules/postgres/manifests/backup_source.pp +++ b/modules/postgres/manifests/backup_source.pp @@ -1,4 +1,6 @@ # +# See dsa-wiki input/howto/postgres-backup.creole for some documentation +# class postgres::backup_source { file { "/usr/local/bin/pg-backup-file": mode => '0555', @@ -20,13 +22,35 @@ class postgres::backup_source { } - if $::hostname in [melartin] { + 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, godard] { + if $::hostname in [melartin, vittoria, godard, buxtehude, danzi] { postgres::backup_server::register_backup_clienthost { "backup-clienthost-${::fqdn}}": } }