Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
puppet: Install the same version of postgres-client as the server.
Alex Vandiver23504308fb4c
diff --git a/docs/production/postgresql.md b/docs/production/postgresql.mdindex 5d08fc82f59..d6777c9221d 100644--- a/docs/production/postgresql.md+++ b/docs/production/postgresql.md@@ -48,6 +48,14 @@ PostgreSQL documentation):overhead. I want to be sure that I connect to a server I trust,and that it's the one I specify.+Set the remote server's PostgreSQL version in `/etc/zulip/zulip.conf`:++```ini+[postgresql]+# Set this to match the version running on your remote PostgreSQL server+version = 16+```+Then you should specify the password of the user zulip for thedatabase in /etc/zulip/zulip-secrets.conf:diff --git a/puppet/kandra/manifests/prometheus/postgresql.pp b/puppet/kandra/manifests/prometheus/postgresql.ppindex a6eb6e96bec..42b93be2281 100644--- a/puppet/kandra/manifests/prometheus/postgresql.pp+++ b/puppet/kandra/manifests/prometheus/postgresql.pp@@ -49,7 +49,7 @@ class kandra::prometheus::postgresql {include zulip::postgresql_clientexec { 'create prometheus postgres user':- require => Package['postgresql-client'],+ require => Class['zulip::postgresql_client'],command => '/usr/bin/createuser -g pg_monitor prometheus',unless => 'test -f /usr/bin/psql && /usr/bin/psql -tAc "select usename from pg_user" | /bin/grep -xq prometheus',user => 'postgres',diff --git a/puppet/zulip/manifests/postgresql_client.pp b/puppet/zulip/manifests/postgresql_client.ppindex cffcde3c846..ced7b4332ca 100644--- a/puppet/zulip/manifests/postgresql_client.pp+++ b/puppet/zulip/manifests/postgresql_client.pp@@ -1,8 +1,6 @@class zulip::postgresql_client {- # This may get us a more recent client than the database server is- # configured to be, ($zulip::postgresql_common::version), but- # they're compatible.- package { 'postgresql-client':+ include zulip::postgresql_common+ package { "postgresql-client-${zulip::postgresql_common::version}":ensure => installed,}}