How to get the Node name using attributes in chef


#1

HI,

I want to get the node name as attributes which is in chef server.

At the time of bootstrapping the node I have used node name as TestNode. So I need that node name as attributes in my recipe.

Can anyone tell me how to get that .

Regards,
Ramadurai.


#2

You should be able to get the name from the node object

node.name

#3

Thanks Chris sullivan. I got the value .