Open a13x212 opened 9 years ago
I'm not able to repro this. Can you include the debug log output and the chef-version/platform you are seeing this on. Here is what I get with Chef 12.0.3 on Ubuntu 14.04:
Recipe: uchiwa::http
* remote_file[/var/chef/cache/uchiwa_0.5.1-1_amd64.deb] action create (up to date)
* dpkg_package[uchiwa_0.5.1-1_amd64.deb] action install (up to date)
CentOS release 6.6 (Final) Chef: 11.16.4
Recipe: uchiwa::http
http.rb will download and install the package on every chef run. It should only try to install the package if it is not already installed. Probably want to use chef only_if
remote_file "#{Chef::Config[:file_cache_path]}/#{pkg}" do source url end
package pkg do options package_options source "#{Chef::Config[:file_cache_path]}/#{pkg}" end