]> git.openstreetmap.org Git - chef.git/commitdiff
Work around cookbook dependency issues
authorTom Hughes <tom@compton.nu>
Sun, 17 Jan 2021 19:41:48 +0000 (19:41 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 17 Jan 2021 19:42:21 +0000 (19:42 +0000)
cookbooks/timescaledb/attributes/default.rb

index 7ce8642ef71a6f19e8f740c807943fe601bd62ec..9d8095ec1fe69d5c30524fdd3ca42f53f5e569b7 100644 (file)
@@ -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"