Skip to content
monstruooo edited this page Jan 28, 2018 · 4 revisions

knife environment list -c ~/.chef/knife-green.rb

knife search 'chef_environment:websaas-stag' -c ~/.chef/knife-prod.rb -i | sort

knife search 'roles:color-eleven-base' -c ~/.chef/knife-green.rb

Node level attributes [normal]

knife search 'DataCenterNameInEnv:c11' -c ~/.chef/knife-prod.rb -i

Kind of related... setting the log_location (-L) to a file prevents the chef logs (Chef::Log.info() or simply log) from going to standard out.

You can override this to print the full log information to stdout

chef-client -L /dev/stdout

Clone this wiki locally