# limitations under the License.
#
-chef_package = "chef_#{node[:chef][:client][:version]}_amd64.deb"
+chef_version = node[:chef][:client][:version]
+chef_package = "chef_#{chef_version}-1_amd64.deb"
directory "/var/cache/chef" do
owner "root"
end
remote_file "/var/cache/chef/#{chef_package}" do
- source "https://packages.chef.io/stable/ubuntu/10.04/#{chef_package}"
+ source "https://packages.chef.io/files/stable/chef/#{chef_version}/ubuntu/16.04/#{chef_package}"
owner "root"
group "root"
mode 0o644
dpkg_package "chef" do
source "/var/cache/chef/#{chef_package}"
- version node[:chef][:client][:version]
+ version "#{chef_version}-1"
end
directory "/etc/chef" do