From: Tom Hughes Date: Sun, 17 Jan 2021 19:41:48 +0000 (+0000) Subject: Work around cookbook dependency issues X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/7f8d6798874890e02ad1a1a4d8a197397f8684c5 Work around cookbook dependency issues --- diff --git a/cookbooks/timescaledb/attributes/default.rb b/cookbooks/timescaledb/attributes/default.rb index 7ce8642ef..9d8095ec1 100644 --- a/cookbooks/timescaledb/attributes/default.rb +++ b/cookbooks/timescaledb/attributes/default.rb @@ -7,6 +7,7 @@ default[:apt][:sources] |= ["timescaledb"] memory_gb = (node[:memory][:total].to_f / 1024 / 1024).ceil +default_unless[:postgresql][:versions] = [] default[:postgresql][:versions] |= [database_version] default[:postgresql][:settings][database_version][:max_connections] = 500 default[:postgresql][:settings][database_version][:shared_buffers] = "#{memory_gb / 4}GB"