[chef] Re: Access data of other node in a recipe


Chronological Thread 
  • From: "Mark J. Reed" < >
  • To:
  • Subject: [chef] Re: Access data of other node in a recipe
  • Date: Fri, 13 Aug 2010 09:02:27 -0400
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=d9pYr26ITa6j7F9c0TJFJLbmGqoq84/Sm/6npr8KPOnTkdVK3rWXjr/v1ZQBdA+Tgz bDtAHjVobPSqIny8I7keiQgXjU5ci/8oUhwWRziFg9Qcl/XQNPk5AmRPeKdy25ecAVn5 BmClnfb5pGvX4xvxOW47Uo73c1tyLOEDFV1LI=

On Fri, Aug 13, 2010 at 6:27 AM,  
< >
 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 
< >



Archive powered by MHonArc 2.6.16.

§