X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fsalsa%2Fmanifests%2Fdatabase.pp;h=6a7d8c7c28cea54ed2b104904b2f8eb790bc9e38;hb=316740527518218b9a13864a89f683a1b6de0756;hp=ba3d173799c475bf96a0ac47263592900548f21e;hpb=dc2f2881975e80ae6367e68e3acd750390691704;p=mirror%2Fdsa-puppet.git diff --git a/modules/salsa/manifests/database.pp b/modules/salsa/manifests/database.pp index ba3d17379..6a7d8c7c2 100644 --- a/modules/salsa/manifests/database.pp +++ b/modules/salsa/manifests/database.pp @@ -18,10 +18,6 @@ class salsa::database inherits salsa { require => Class['postgresql::server::contrib'], } - - - include postgres::backup_source - $pg_config_options = { 'track_counts' => 'yes', 'archive_mode' => 'yes', @@ -41,10 +37,15 @@ class salsa::database inherits salsa { } } + include postgres::backup_source + postgres::backup_cluster { $::hostname: pg_version => $postgresql::params::version, pg_port => $postgresql::params::port, do_role => true, do_hba => true, } + + postgres::backup_server::register_backup_clienthost { "backup-clienthost-${::fqdn}}": + } }