X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/68e068818d559ef35bdf2a138a93596337828ef9..e837e94ac08643669c7c5506cb752a83e0cbe409:/cookbooks/apt/recipes/hwraid.rb?ds=sidebyside 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