chef - Get list of installed cookbooks along with their version -


i have server has been provisioned via chef. know cookbook versions have been installed on server.

being chef-newbee, worked around using grep following, know whether or not there official way of getting information.

sudo grep -e '^version|"version":' /var/chef/cache/cookbooks/*/metadata* 

is there chef command lists installed cookbooks along versions?

try following:

knife cookbook list | awk '{printf "knife cookbook show %s\n",$1}'| bash 

will print out versions associated each cookbook. example:

java   1.31.0  1.29.0 mysql   6.0.22  6.0.21 rbac   1.0.3 smf   2.2.6 yum   3.6.0 yum-mysql-community   0.1.17 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -