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.

puppet: If needed, ensure wal-g is installed before we start PostgreSQL.

Alex Vandiver4be2abc55b50
diff --git a/puppet/zulip/manifests/profile/postgresql.pp b/puppet/zulip/manifests/profile/postgresql.pp
index 614d7d8996d..3af4fdb6901 100644
--- a/puppet/zulip/manifests/profile/postgresql.pp
+++ b/puppet/zulip/manifests/profile/postgresql.pp
@@ -66,8 +66,15 @@ class zulip::profile::postgresql {
}
}
+ $backups_s3_bucket = zulipsecret('secrets', 's3_backups_bucket', '')
+ $backups_directory = zulipconf('postgresql', 'backups_directory', '')
+ if $backups_s3_bucket != '' or $backups_directory != '' {
+ $require = [File['/usr/local/bin/env-wal-g'], Package[$zulip::postgresql_base::postgresql]]
+ } else {
+ $require = [Package[$zulip::postgresql_base::postgresql]]
+ }
exec { $zulip::postgresql_base::postgresql_restart:
- require => Package[$zulip::postgresql_base::postgresql],
+ require => $require,
refreshonly => true,
subscribe => [ File[$postgresql_conf_file] ],
}