From: Grant Slater Date: Tue, 20 Sep 2022 21:39:11 +0000 (+0100) Subject: apt: Simplify apt arch condition X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/46d9bc23469820b07b7a50b12652303a64c0fbb7 apt: Simplify apt arch condition --- diff --git a/cookbooks/apt/recipes/default.rb b/cookbooks/apt/recipes/default.rb index 198a4b88d..fc5341ec5 100644 --- a/cookbooks/apt/recipes/default.rb +++ b/cookbooks/apt/recipes/default.rb @@ -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