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: Do not include postgresql_common for all PostgreSQL clients.

Alex Vandiver80ef38757aae
diff --git a/puppet/zulip/manifests/postgresql_client.pp b/puppet/zulip/manifests/postgresql_client.pp
index ced7b4332ca..a26ef64f6a0 100644
--- a/puppet/zulip/manifests/postgresql_client.pp
+++ b/puppet/zulip/manifests/postgresql_client.pp
@@ -1,6 +1,12 @@
class zulip::postgresql_client {
- include zulip::postgresql_common
- package { "postgresql-client-${zulip::postgresql_common::version}":
- ensure => installed,
+ $version = zulipconf('postgresql', 'version', undef)
+ if $version != undef {
+ package { "postgresql-client-${version}":
+ ensure => installed,
+ }
+ } else {
+ package { 'postgresql-client':
+ ensure => installed,
+ }
}
}