Thanks for the inputThis is what I am seeing on my server 11.4 I have a cookbook_file resource where I am copying a file a-1.1.0-snapshot.war , when I copy a new war file to the cookbook files/default location and run chef client the chef client says uptodate and don't download the filePlease help me with the proper fix for this
Sent from my iPhoneOn Friday, September 13, 2013 at 9:24 AM, Manoj wrote:
I can have the chef client download the artifacts sure but as i said the artifacts name are the same I would not know what's downloaded from repositoryPutting it in the chef server from Jenkins is my way of tracking what I am deploying to chef client , I think it's pretty standard from traceability point of virw to put data in chef server for jenkinsAre you saying there is no way a cookbook file can do a checksum or see if Ike is modified . I was reading cookbook_fie documentation and it says it does copy file only Fi modified in theoryAll of the file resources are idempotent and will only update a file if it's modified. In the remote_file case, if you are on 11.6+ and your server supports conditional GET, then the file will not be re-downloaded; if you're on an earlier version of chef, the file has to be redownloaded for chef to check if it's changed. You can use the checksum attribute on the resource to avoid this.--Daniel DeLeo
Archive powered by MHonArc 2.6.16.