Question: what is metadata.rb in chef?
Answer: A file named metadata. rb is located at the top of every cookbook directory structure. The contents of the metadata. rb file provides hints to the Chef server to help ensure that cookbooks are deployed to each node correctly.