From 49e5722a9f4b978231e955be674a97a8a6eae339 Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Tue, 20 Aug 2024 16:31:32 +0000 Subject: [PATCH] kandra: Match the logic in zulip::profile::postgresql. --- puppet/kandra/manifests/profile/postgresql.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/puppet/kandra/manifests/profile/postgresql.pp b/puppet/kandra/manifests/profile/postgresql.pp index e6dda4feca..ba639311fd 100644 --- a/puppet/kandra/manifests/profile/postgresql.pp +++ b/puppet/kandra/manifests/profile/postgresql.pp @@ -36,7 +36,8 @@ class kandra::profile::postgresql inherits kandra::profile::base { # This is the second stage, after secrets are configured $replication_primary = zulipconf('postgresql', 'replication_primary', undef) - if $replication_primary != undef { + $replication_user = zulipconf('postgresql', 'replication_user', undef) + if $replication_primary != undef and $replication_user != undef { file { '/root/setup_data.sh': ensure => file, owner => 'root',