X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/68e068818d559ef35bdf2a138a93596337828ef9..97aac1724da5fd406b0be6c892f43a94e846e9b8:/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