roles::postgresql::server now sets up postgres::cluster for all clusters
[mirror/dsa-puppet.git] / modules / salsa / manifests / database.pp
index ba3d173..24647a3 100644 (file)
@@ -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,14 @@ 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,
        }
+
+       include postgres::backup_server::register_backup_clienthost
 }