if $handle_role {
postgresql::server::role { $host_cn:
replication => true,
+ require => Service["postgresql"],
}
if $add_self_role {
# Needed to be replicated to the backup and be able to recover later
ensure_resource("postgresql::server::role", $ldap_cn, {
replication => true,
+ require => Service["postgresql"],
})
}
}
if $handle_slot {
postgresql_replication_slot { regsubst($host_cn, '-', "_", "G"):
- ensure => present
+ ensure => present,
+ require => Service["postgresql"],
}
}
}