I have a cookbook mycookbook which is added to the runlist of a node node_address. Now I want to retrieve the attributes of mycookbook in JSON format from the node.
In this case, I have access to the node so I can ssh in that node and run commands.
I would also like to learn what knife commands to use to get the attributes in JSON format from the cookbook which is added to the runlist of a node.
if you added a cookbook to a node run-list and converged the node (by executing
chef-clienton the node), you can useknife node show