Access data of other node in a recipe


#1

Hi

I want to use host_rsa_public key of nodes in the same role for key
authentication
Is it anyway to access data of other node in a recipe ?


ATTENTION:
The information in this electronic mail message is private and
confidential, and only intended for the addresses. Should you
receive this message by mistake, you are hereby notified that
any disclosure, reproduction, distribution or use of this
message is strictly prohibited. Please inform the sender by
reply transmission and delete the message without copying or
opening it.


#2

On Fri, Aug 13, 2010 at 6:27 AM, le.huy@ingdirect.es wrote:

I want to use host_rsa_public key of nodes in the same role for key
authentication Is it anyway to access data of other node in a recipe ?

You can use the search API:

role_nodes = search(:node, ‘run_list:role[my_role]’);

each element of the array will have all the node data available to
Chef at the time the recipe is run.


Mark J. Reed markjreed@gmail.com