Thursday, January 30, 2014

Bash Alias for Chef Checksums

I found this blog article that taught me how to create short checksums for the remote_file provider.  It works like a charm!

I am very lazy, so I created an alias and added it to my .bashrc:
  shasum -a 256 $1 | cut -c-12

alias chefsum=calc_chefsum
So now when I want to get the checksum for a file, I just do a:
chefsum <filename>

No comments:

Post a Comment