]> git.openstreetmap.org Git - chef.git/commitdiff
apt: Simplify apt arch condition
authorGrant Slater <github@firefishy.com>
Tue, 20 Sep 2022 21:39:11 +0000 (22:39 +0100)
committerGrant Slater <github@firefishy.com>
Tue, 20 Sep 2022 21:39:11 +0000 (22:39 +0100)
cookbooks/apt/recipes/default.rb

index 198a4b88dcfd5ce76190a7dd1af1ed7ff2f95155..fc5341ec54456e660c2aac8e28eb7ad2de884a3e 100644 (file)
@@ -39,7 +39,7 @@ apt_update "/etc/apt/sources.list" do
   action :nothing
 end
 
-if node[:kernel][:machine] == "x86_64"
+if intel?
   archive_host = if node[:country]
                    "#{node[:country]}.archive.ubuntu.com"
                  else