Retrieving attributes from the cookbooks

Hi,
Need a clarification regarding the node specific attributes set during the chef
run.
For example if I run a mysql cookbook which is having randomly generated server
root password,debian password,How can I get those passwords so that I can use?
I could not find anything regarding this in the logs too.

maybe this will help About Data Bags

On Thu, Aug 8, 2013 at 8:41 AM, nagalakshmi.n@cloudenablers.com wrote:

Hi,
Need a clarification regarding the node specific attributes set during the
chef
run.
For example if I run a mysql cookbook which is having randomly generated
server
root password,debian password,How can I get those passwords so that I can
use?
I could not find anything regarding this in the logs too.

On 8/8/2013 2:41 AM, nagalakshmi.n@cloudenablers.com wrote:

Hi,
Need a clarification regarding the node specific attributes set during the chef
run.
For example if I run a mysql cookbook which is having randomly generated server
root password,debian password,How can I get those passwords so that I can use?
I could not find anything regarding this in the logs too.

You need to know the cookbook is all. The community mysql cookbook, for
example, sets the root password on a node attribute, so just reference
the node attribute's value.

More specifically, I ask:

 "get those passwords so that I can use"

Get them from where? Another Chef recipe?
Use them for what?