]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/apt/recipes/timescaledb.rb
Get apt configuration working on debian
[chef.git] / cookbooks / apt / recipes / timescaledb.rb
index 57cccf2b29c8846684fc6833463fa71f079fe99a..5fc56c2d2fe5dcf68510f4f7863bf4e1e24017f1 100644 (file)
 include_recipe "apt"
 include_recipe "apt::postgresql"
 
+platform_name = if platform?("debian")
+                  "debian"
+                else
+                  "ubuntu"
+                end
+
 apt_repository "timescaledb" do
-  uri "https://packagecloud.io/timescale/timescaledb/ubuntu"
+  uri "https://packagecloud.io/timescale/timescaledb/#{platform_name}"
   components ["main"]
   key "https://packagecloud.io/timescale/timescaledb/gpgkey"
 end