X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/8704320540a9b63acd4cf4df49190cd103b5efa5..ad62d51f720c7df61f6486cd19c4acb277c23908:/cookbooks/dns/recipes/default.rb diff --git a/cookbooks/dns/recipes/default.rb b/cookbooks/dns/recipes/default.rb index 04a07f61c..e1233775f 100644 --- a/cookbooks/dns/recipes/default.rb +++ b/cookbooks/dns/recipes/default.rb @@ -43,11 +43,7 @@ cache_dir = Chef::Config[:file_cache_path] dnscontrol_version = "3.20.0" -if arm? - dnscontrol_arch = "arm64" -else - dnscontrol_arch = "amd64" -end +dnscontrol_arch = arm? ? "arm64" : "amd64" remote_file "#{cache_dir}/dnscontrol-#{dnscontrol_version}.deb" do source "https://github.com/StackExchange/dnscontrol/releases/download/v#{dnscontrol_version}/dnscontrol-#{dnscontrol_version}.#{dnscontrol_arch}.deb"