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 we do not error out creating standby.signal.

Alex Vandiver6cc480e2b5df
diff --git a/puppet/kandra/manifests/profile/postgresql.pp b/puppet/kandra/manifests/profile/postgresql.pp
index ba639311fd5..f1ef073250d 100644
--- a/puppet/kandra/manifests/profile/postgresql.pp
+++ b/puppet/kandra/manifests/profile/postgresql.pp
@@ -50,6 +50,7 @@ class kandra::profile::postgresql inherits kandra::profile::base {
require => [File['/usr/local/bin/env-wal-g'], Exec['setup_disks']],
unless => "test -d /srv/data/postgresql/${zulip::postgresql_common::version}/main",
timeout => 0,
+ before => File["${zulip::postgresql_base::postgresql_datadir}/standby.signal"],
notify => Exec[$zulip::postgresql_base::postgresql_restart],
}
}
diff --git a/puppet/zulip/manifests/profile/postgresql.pp b/puppet/zulip/manifests/profile/postgresql.pp
index 891da04a280..933af589b6a 100644
--- a/puppet/zulip/manifests/profile/postgresql.pp
+++ b/puppet/zulip/manifests/profile/postgresql.pp
@@ -59,6 +59,7 @@ class zulip::profile::postgresql {
file { "${zulip::postgresql_base::postgresql_datadir}/standby.signal":
ensure => file,
require => Package[$zulip::postgresql_base::postgresql],
+ before => Exec[$zulip::postgresql_base::postgresql_restart],
owner => 'postgres',
group => 'postgres',
mode => '0644',