My Profile Photo

Spencer Owen


The art of progress is to preserve order amid change and preserve change amid order - Alfred North Whitehead


Knife list chef versions

Knife tip

If you want to list the version of chef that is installed on all machines, you can do so with knife.

knife search 'name:foobar' -a chef_packages.chef.version
1 items found
foobar:
  chef_packages.chef.version: 12.21.3

For me, this is helpful when cookbooks have specific cookbook requirements in their metadata.rb, and you want to know if you can run it.

metadata.rb

chef_version '>= 12.17.0'
chef_version '< 13.0.0'