In talking with Sean Cribbs, this issue only happens with solo - and that makes sense, because:
In chef/lib/chef/provider/remote_file.rb
if Chef::Config[:solo]
filename = find_preferred_file(
@new_resource.cookbook_name.to_s,
:remote_file,
source,
@node[:fqdn],
@node[:platform],
@node[:platform_version]
)
Chef::Log.debug("Using local file for remote_file:#{filename}")
raw_file = ::File.open(filename)
else
Note that it has no url generation. We just need to refactor this into a more sane implementation - its kind of a hack.
I can't reproduce this. From the following:
remote_file "/tmp/rabbitmq-server_1.4.0-1_all.deb" do
source "http://www.rabbitmq.com/releases/rabbitmq-server/v1.4.0/rabbitmq-server_1.4.0-1_all.deb"
mode 0644
end
I wind up with the deb properly in /tmp.
Can you give some more detail here, because as far as I can see, this is PEBKAC.