# puppet Cannot use URLs of type 'http' as source for fileserving

hello, everyone! I want to use other file-server instead of puppet build-in file-server which means I don't want to use "puppet:///" as file source. I tired rsync, which makes me have to modify pp files too much. So is there any other solution to fix this problem ?

## here is my pp file

node 'agent-2.wp.com' {
notify{"This is ${hostname}!Test message!":} file{"test.txt": owner => 'root', group => 'root', ensure => present, path => "/opt/puppet/files/test/test.txt", source => "http://172.16.124.129/files/test/test.txt", } } error:puppet Cannot use URLs of type 'http' as source for fileserving edit retag close merge delete ## 2 Answers Sort by » oldest newest most voted It isn't a 'file' resource, but you can use the archive module to source files (and decompress archives) from various remote locations, including http, https, ftp, s3, etc.. more is there a reason you dont want to use the puppet fileserver? If its just wanting to use directories other than moduledire/files then you can edit$confdir/fileserver.conf - in there you can add an extra_files section to point to different directories.

the file resource historically has only supported puppet:// or file:// formats https://tickets.puppetlabs.com/browse... - looksl ike released in newer versions of puppet 4..)

if you want it on a completely different server I'd suggest unfortunately using exec with wget or curl ...

more