puppetlabs/puppet — pull request #2420 by dreamlibrarian (2014-03-07 21:24:47+00:00)
Title: Disambiguation of handling source_or_content for fileservers vs local re...

As of current release, due to the use of source_or_content.full_path, the hostname is stripped from attempts to handle file_content calls in type/file.rb. Because of this, it correctly calls file_metadata from the proper server, but then calls the puppetmaster instead of the remote fileserver for content retrieval, which fails.

This resolution might still be a bit naive, but it mitigates the issue pretty neatly.