[chef] Setting attributes on a node


Chronological Thread 
  • From: Paul McCallick < >
  • To: " " < >
  • Subject: [chef] Setting attributes on a node
  • Date: Thu, 18 Oct 2012 11:56:55 -0700
  • Accept-language: en-US
  • Acceptlanguage: en-US

Hi all,

 

We have recipes that install internally developed applications on nodes.  The version of the applications, and the list of applications installed, depends on a combination of a databag and a node attributes and is determined while running a recipe.  At the end of this process, we would really like to be able to see the list of installed applications and the versions during knife searches.

 

We have been thinking of using the recipe to set attributes on the node, but this feels strange to me.  I keep worrying that were going to violate the practice of being able to override node attributes.  I was thinking maybe we should use ohai to set some properties on the machine, but don’t really know how to do that or if it is the right thing to do.

 

Any ideas?

 

Thanks,

Paul




Archive powered by MHonArc 2.6.16.

§