diff --git a/puppet/kandra/manifests/profile/postgresql.pp b/puppet/kandra/manifests/profile/postgresql.pp index ba639311fd..f1ef073250 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 891da04a28..933af589b6 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',