X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/b73176eda2a83b7fc0170a5639ad036b1c897773..9c6f24be91afa44069f9e43e338fa6272e76b668:/cookbooks/apt/recipes/timescaledb.rb diff --git a/cookbooks/apt/recipes/timescaledb.rb b/cookbooks/apt/recipes/timescaledb.rb index 57cccf2b2..5fc56c2d2 100644 --- a/cookbooks/apt/recipes/timescaledb.rb +++ b/cookbooks/apt/recipes/timescaledb.rb @@ -20,8 +20,14 @@ 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