hlesnt395
hlesnt395

Reputation: 803

Download file from remote http server with user credentials through Chef recipe

I'm trying to download remote file from chef recipe. I can download file using below command if the server does not require username and password.

remote_file "/destination-folder/large-file.tar.gz" do source "http://www.example.org/large-file.tar.gz

but my server require username and password to download the file.

how can I include username and password into above chef code?

Upvotes: 0

Views: 762

Answers (1)

coderanger
coderanger

Reputation: 54181

source 'https://username:[email protected]/whatever', and don't forget sensitive true too.

Upvotes: 3

Related Questions