Peter Dalinis
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:
calc_chefsum()
{
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment