How to get the attributes from a cookbook added to the runlist of a node?

102 Views Asked by At

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.

1

There are 1 best solutions below

0
On

if you added a cookbook to a node run-list and converged the node (by executing chef-client on the node), you can use knife node show

knife node show node.example.com --format json --long