From: Tom Hughes Date: Thu, 17 Feb 2022 13:35:00 +0000 (+0000) Subject: Use upstream packages for promscale extension X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/9b07fc44c5c16e540f6831216c09b660b8a9f1a3?ds=sidebyside;hp=cddda3fe9f6d0a3f5818795f0376b1c92a4033f2 Use upstream packages for promscale extension --- diff --git a/cookbooks/prometheus/files/default/postgresql-14-promscale.so b/cookbooks/prometheus/files/default/postgresql-14-promscale.so deleted file mode 100755 index 434655f65..000000000 Binary files a/cookbooks/prometheus/files/default/postgresql-14-promscale.so and /dev/null differ diff --git a/cookbooks/prometheus/recipes/server.rb b/cookbooks/prometheus/recipes/server.rb index 2df77a603..75ade71be 100644 --- a/cookbooks/prometheus/recipes/server.rb +++ b/cookbooks/prometheus/recipes/server.rb @@ -104,6 +104,7 @@ package %w[ ] promscale_version = "0.7.1" +promscale_extension_version = "0.3.0" database_version = node[:timescaledb][:database_version] database_cluster = "#{database_version}/main" @@ -124,11 +125,17 @@ directory "/opt/promscale" do mode "755" end -cookbook_file "/usr/lib/postgresql/#{database_version}/lib/promscale.so" do - source "postgresql-#{database_version}-promscale.so" +remote_file "#{cache_dir}/promscale_extension.pg#{database_version}.x86_64.deb" do + source "https://github.com/timescale/promscale_extension/releases/download/#{promscale_extension_version}/promscale_extension-#{promscale_extension_version}.pg#{database_version}.x86_64.deb" owner "root" group "root" mode "644" + backup false +end + +dpkg_package "promscale-extension-postgresql-#{database_version}" do + source "#{cache_dir}/promscale_extension.pg#{database_version}.x86_64.deb" + version "#{promscale_extension_version}-1" end directory "/opt/promscale/bin" do