kandra: Match the logic in zulip::profile::postgresql.

This commit is contained in:
Alex Vandiver 2024-08-20 16:31:32 +00:00 committed by Tim Abbott
parent 9e58780d46
commit 49e5722a9f
1 changed files with 2 additions and 1 deletions

View File

@ -36,7 +36,8 @@ class kandra::profile::postgresql inherits kandra::profile::base {
# This is the second stage, after secrets are configured # This is the second stage, after secrets are configured
$replication_primary = zulipconf('postgresql', 'replication_primary', undef) $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': file { '/root/setup_data.sh':
ensure => file, ensure => file,
owner => 'root', owner => 'root',