Reputation: 35
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.
Upvotes: 0
Views: 110
Reputation: 10112
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
Upvotes: 0