X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/b73176eda2a83b7fc0170a5639ad036b1c897773..1a062eb5304d0ef835313e5948053fcdccf20ecf:/cookbooks/apt/recipes/hwraid.rb diff --git a/cookbooks/apt/recipes/hwraid.rb b/cookbooks/apt/recipes/hwraid.rb index aa5a7fb91..fa5d9e1f9 100644 --- a/cookbooks/apt/recipes/hwraid.rb +++ b/cookbooks/apt/recipes/hwraid.rb @@ -19,9 +19,21 @@ include_recipe "apt" +platform_name = if platform?("debian") + "debian" + else + "ubuntu" + end + +distribution_name = if platform?("debian") + "buster" + else + "precise" + end + apt_repository "hwraid" do - uri "https://hwraid.le-vert.net/ubuntu" - distribution "precise" + uri "https://hwraid.le-vert.net/#{platform_name}" + distribution distribution_name components ["main"] key "6005210E23B3D3B4" end