X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/b44220a58b9779d37c0599a7f03ae3f9fd77f77b..98c8d0026a2836abf350ac2a393930ff81cef41c:/cookbooks/chef/recipes/default.rb diff --git a/cookbooks/chef/recipes/default.rb b/cookbooks/chef/recipes/default.rb index 9f377f502..5a711398f 100644 --- a/cookbooks/chef/recipes/default.rb +++ b/cookbooks/chef/recipes/default.rb @@ -20,7 +20,12 @@ cache_dir = Chef::Config[:file_cache_path] chef_version = node[:chef][:client][:version] -chef_package = "chef_#{chef_version}-1_amd64.deb" +chef_arch = if arm? + "arm64" + else + "amd64" + end +chef_package = "chef_#{chef_version}-1_#{chef_arch}.deb" directory "/var/cache/chef" do action :delete