[chef] Accessing Node Object in Libraries


Chronological Thread 
  • From: "Stewart, Curtis" < >
  • To: " " < >
  • Subject: [chef] Accessing Node Object in Libraries
  • Date: Fri, 16 May 2014 14:10:28 +0000
  • Accept-language: en-US
  • Authentication-results: spf=none (sender IP is ) ;

Should I always be able to access the node object in libraries?  Julian Dunn wrote a great post on writing libraries here, but there’s no reference to a node object.  

Unfortunately, I don’t have a specific example, but I know I’ve come across cases where I have to pass the node object from a recipe into a library method because the library didn’t know about the node object itself.  I believe the differences come into play when you create a proper library using ruby modules (as in Julian’s post) vs. just adding helper methods with no namespacing.


Curtis Stewart
Consultant
m 217.390.5067
Skype cstewart8710

 




Cloud Migration - Architecture - DevOps - Big Data - App Dev




Archive powered by MHonArc 2.6.16.

§