]> git.openstreetmap.org Git - chef.git/commitdiff
dns: use cookstyle auto correct format
authorGrant Slater <github@firefishy.com>
Fri, 14 Oct 2022 12:37:18 +0000 (13:37 +0100)
committerGrant Slater <github@firefishy.com>
Fri, 14 Oct 2022 12:37:18 +0000 (13:37 +0100)
cookbooks/dns/recipes/default.rb

index e1233775f3b0ea594b30066bb5519b9cd309231b..d7d038c30c4ca18cbf9e477e8d6eb53263b00ceb 100644 (file)
@@ -43,7 +43,11 @@ cache_dir = Chef::Config[:file_cache_path]
 
 dnscontrol_version = "3.20.0"
 
-dnscontrol_arch = arm? ? "arm64" : "amd64"
+dnscontrol_arch = if arm?
+                    "arm64"
+                  else
+                    "amd64"
+                  end
 
 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"