Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

kandra: Ensure that pg_hba.conf is in place before starting PostgreSQL.

Alex Vandivera8dbdd6d928b
diff --git a/puppet/kandra/manifests/profile/postgresql.pp b/puppet/kandra/manifests/profile/postgresql.pp
index 6f4b9149797..2f2c6a9c47b 100644
--- a/puppet/kandra/manifests/profile/postgresql.pp
+++ b/puppet/kandra/manifests/profile/postgresql.pp
@@ -37,6 +37,7 @@ class kandra::profile::postgresql inherits kandra::profile::base {
file { "${zulip::postgresql_base::postgresql_confdir}/pg_hba.conf":
ensure => file,
require => Package["postgresql-${zulip::postgresql_common::version}"],
+ notify => Exec[$zulip::postgresql_base::postgresql_restart],
owner => 'postgres',
group => 'postgres',
mode => '0640',