aboutsummaryrefslogtreecommitdiff
path: root/modules/profile/manifests/postgresql/backup_replication.pp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/profile/manifests/postgresql/backup_replication.pp')
-rw-r--r--modules/profile/manifests/postgresql/backup_replication.pp6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/profile/manifests/postgresql/backup_replication.pp b/modules/profile/manifests/postgresql/backup_replication.pp
index a4edb8f..1526123 100644
--- a/modules/profile/manifests/postgresql/backup_replication.pp
+++ b/modules/profile/manifests/postgresql/backup_replication.pp
@@ -61,6 +61,8 @@ define profile::postgresql::backup_replication (
61 target => "$pg_path/pg_hba.conf", 61 target => "$pg_path/pg_hba.conf",
62 } 62 }
63 } else { 63 } else {
64 $pg_listen_port = undef
65
64 concat::fragment { "$pg_path/postgresql.conf listen": 66 concat::fragment { "$pg_path/postgresql.conf listen":
65 target => "$pg_path/postgresql.conf", 67 target => "$pg_path/postgresql.conf",
66 content => "listen_addresses = ''\n", 68 content => "listen_addresses = ''\n",
@@ -130,6 +132,8 @@ define profile::postgresql::backup_replication (
130 } 132 }
131 133
132 # Dumps 134 # Dumps
133 profile::postgresql::backup_dump { "$base_path/$pg_backup_host": } 135 profile::postgresql::backup_dump { "$base_path/$pg_backup_host":
136 pg_port => $pg_listen_port,
137 }
134 138
135} 139}