codec
codec

Reputation: 8836

Chef - Best way to copy file from a remote host

I am trying to copy a file from a remote server to the chef client. I tried to use remote_file resource with ftp source but it requires ftp server to be installed on the chef client. Is there any way to copy a file from remote server to chef-client without explicitly installing anything on the client? I followed https://docs.chef.io/resource_remote_file.html

Upvotes: 0

Views: 479

Answers (1)

coderanger
coderanger

Reputation: 54267

The best way is to put the file on a web server (or conversely run a simple web server where the file already is) and then use the remote_file resource.

Upvotes: 1

Related Questions