Use ubuntu release in chef client URL
authorTom Hughes <tom@compton.nu>
Tue, 11 Sep 2018 18:39:42 +0000 (19:39 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 11 Sep 2018 18:39:42 +0000 (19:39 +0100)
cookbooks/chef/recipes/default.rb

index 73228580e375524f6d949ad1ba82de29e8e87db8..32c8a7dc674b89bed3353cf59003fb41a60807ee 100644 (file)
@@ -36,7 +36,7 @@ Dir.glob("/var/cache/chef/chef_*.deb").each do |deb|
 end
 
 remote_file "/var/cache/chef/#{chef_package}" do
-  source "https://packages.chef.io/files/stable/chef/#{chef_version}/ubuntu/16.04/#{chef_package}"
+  source "https://packages.chef.io/files/stable/chef/#{chef_version}/ubuntu/#{node[:lsb][:release]}/#{chef_package}"
   owner "root"
   group "root"
   mode 0o644