[chef] remote_file checksum


Chronological Thread 
  • From:
  • To:
  • Subject: [chef] remote_file checksum
  • Date: Tue, 11 Mar 2014 14:59:02 +0000

Hi All,

I’ve been working with the remote_file  a bit lately. I’m using chef-solo.

I’m misunderstanding the use of checksum attribute ( at least I hope) 

with the following code , should it retry download until retries limit?

remote_file "/tmp/myfile.tmp" do
checksum "incorrect_should_cause_redownload"
retries 3
retry_delay 20
end

My understanding was that it should only fetch the source if the checksums don’t match.
I’ve tried this with forcing the use_conditional_get true and use_etag true.

It seems to ignore what I set checksum too , string , md5, and sha256 is what it should be.


Thanks 
D.



Archive powered by MHonArc 2.6.16.

§