knife search node '*:*' -a recipes
gives me all the nodes and their recipes.
knife node show NODE_ID -a recipes
gives me recipes used by a specific node with NODE_ID
.
I need to fetch the contents of the recipes that these commands fetch. Even a command to view a specific recipe on the chef server would suffice.
knife cookbook show COOKNAME VERSION recipes RECIPENAME.rb
You can also tweak that for other types of files inside a cookbook.
You can use the knife cookbook show COOKBOOK [VERSION] [PART] [FILENAME]
command:
knife cookbook show mycookbook 1.2.3 recipes default.rb
outputs the default recipe of mycookbook's version 1.2.3
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With