]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/apt/recipes/docker.rb
Update matomo to 4.15.1
[chef.git] / cookbooks / apt / recipes / docker.rb
index 7c8780779687ae8a48ff71954cac9bf1516e802c..2aeb832e3e50cdc7fa9e3a871d1f70f462cf1f6b 100644 (file)
 
 include_recipe "apt"
 
 
 include_recipe "apt"
 
+docker_platform = if platform?("debian")
+                    "debian"
+                  else
+                    "ubuntu"
+                  end
+
 docker_arch = if arm?
                 "arm64"
               else
 docker_arch = if arm?
                 "arm64"
               else
@@ -26,8 +32,8 @@ docker_arch = if arm?
               end
 
 apt_repository "docker" do
               end
 
 apt_repository "docker" do
-  uri "https://download.docker.com/linux/ubuntu"
+  uri "https://download.docker.com/linux/#{docker_platform}"
   arch docker_arch
   components ["stable"]
   arch docker_arch
   components ["stable"]
-  key "https://download.docker.com/linux/ubuntu/gpg"
+  key "https://download.docker.com/linux/#{docker_platform}/gpg"
 end
 end