aboutsummaryrefslogtreecommitdiff
path: root/modules/profile/manifests/postgresql/replication.pp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/profile/manifests/postgresql/replication.pp')
-rw-r--r--modules/profile/manifests/postgresql/replication.pp5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/profile/manifests/postgresql/replication.pp b/modules/profile/manifests/postgresql/replication.pp
index 2fcb71c..b050058 100644
--- a/modules/profile/manifests/postgresql/replication.pp
+++ b/modules/profile/manifests/postgresql/replication.pp
@@ -52,6 +52,7 @@ define profile::postgresql::replication (
52 if $handle_role { 52 if $handle_role {
53 postgresql::server::role { $host_cn: 53 postgresql::server::role { $host_cn:
54 replication => true, 54 replication => true,
55 require => Service["postgresql"],
55 } 56 }
56 57
57 if $add_self_role { 58 if $add_self_role {
@@ -60,13 +61,15 @@ define profile::postgresql::replication (
60 # Needed to be replicated to the backup and be able to recover later 61 # Needed to be replicated to the backup and be able to recover later
61 ensure_resource("postgresql::server::role", $ldap_cn, { 62 ensure_resource("postgresql::server::role", $ldap_cn, {
62 replication => true, 63 replication => true,
64 require => Service["postgresql"],
63 }) 65 })
64 } 66 }
65 } 67 }
66 68
67 if $handle_slot { 69 if $handle_slot {
68 postgresql_replication_slot { regsubst($host_cn, '-', "_", "G"): 70 postgresql_replication_slot { regsubst($host_cn, '-', "_", "G"):
69 ensure => present 71 ensure => present,
72 require => Service["postgresql"],
70 } 73 }
71 } 74 }
72} 75}