]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blobdiff - modules/profile/manifests/postgresql/backup_replication.pp
Fix dumps when postgres port is present
[perso/Immae/Projets/Puppet.git] / modules / profile / manifests / postgresql / backup_replication.pp
index a4edb8f2a9c526737aee8605fab48ab76d6ec4a3..1526123b2b8d854ff173401e88afb26e7cf50617 100644 (file)
@@ -61,6 +61,8 @@ define profile::postgresql::backup_replication (
       target => "$pg_path/pg_hba.conf",
     }
   } else {
+    $pg_listen_port = undef
+
     concat::fragment { "$pg_path/postgresql.conf listen":
       target  => "$pg_path/postgresql.conf",
       content => "listen_addresses = ''\n",
@@ -130,6 +132,8 @@ define profile::postgresql::backup_replication (
   }
 
   # Dumps
-  profile::postgresql::backup_dump { "$base_path/$pg_backup_host": }
+  profile::postgresql::backup_dump { "$base_path/$pg_backup_host":
+    pg_port => $pg_listen_port,
+  }
 
 }