]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/apt/recipes/hwraid.rb
Merge remote-tracking branch 'github/pull/704'
[chef.git] / cookbooks / apt / recipes / hwraid.rb
index aa5a7fb915e2f6cc04a39090997e4e89f2588e80..fa5d9e1f99ba74ad78e3a07476be6eca7cfe3a65 100644 (file)
 
 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