chef-osx icon indicating copy to clipboard operation
chef-osx copied to clipboard

make a mechanism for monitoring the hashes of remote files

Open marpaia opened this issue 11 years ago • 1 comments

I can see a big impediment to a successful chef run being all of the checksums mismatching because apps got updated. write a script that i can cron that will download files to /tmp or chef cache every so often and let me know that hashes have changed (and perhaps automatically update them if i say it's ok).

marpaia avatar May 15 '13 03:05 marpaia

[marpaia@-rue] chef-osx (master):egrep -ir -A1 "^default.*source.*http" ./ | grep -v "\-\-" | awk {'print $3'} | sed 'N;s/\n/ /' | sed 's/"/ /g' | sed 's/   / /g'
 http://www.dropbox.com/download?plat=mac 907c3e3024fae6a559437a6f1b4e5bc05c78fd5c923bad761bea153bd1b4ba56
 https://dl-ssl.google.com/chrome/mac/stable/GGRM/googlechrome.dmg 206de9c93cd63901bd21d1c018df7fbb96d1081730f06a484bc75b790d40ca38
 https://dl.google.com/drive/installgoogledrive.dmg cc684536c5d79f60db1d1143de9e2c1311334ba2ce9ec884717e6e2630a30b18

marpaia avatar May 17 '13 15:05 marpaia