]> git.openstreetmap.org Git - chef.git/commitdiff
Pin promscale extension to a fixed version that matches promscale
authorTom Hughes <tom@compton.nu>
Mon, 23 Jan 2023 10:20:36 +0000 (10:20 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 23 Jan 2023 10:20:36 +0000 (10:20 +0000)
cookbooks/prometheus/recipes/server.rb

index a77c9fdf7e6cfd6a864cc9e5f59e589f0b727151..c97cd07f2ff9a9c7c3f8b27cfd39039c49b04333 100644 (file)
@@ -112,6 +112,7 @@ archive_file "#{cache_dir}/karma-linux-amd64.tar.gz" do
 end
 
 promscale_version = "0.17.0"
+promscale_extension_version = "0.8.0"
 
 database_version = node[:timescaledb][:database_version]
 database_cluster = "#{database_version}/main"
@@ -122,6 +123,15 @@ package %W[
   promscale-extension-postgresql-#{database_version}
 ]
 
+package "promscale-extension-postgresql-#{database_version}" do
+  version promscale_extension_version
+end
+
+apt_preference "promscale-extension-postgresql" do
+  pin "version #{promscale_extension_version}"
+  pin_priority "1100"
+end
+
 postgresql_user "prometheus" do
   cluster database_cluster
   superuser true