[chef] How to add ruby lib as depend at LWRP


Chronological Thread 
  • From: Juan Jesús Ojeda Croissier < >
  • To:
  • Subject: [chef] How to add ruby lib as depend at LWRP
  • Date: Tue, 13 Dec 2011 12:59:46 +0100

Hi :-)

I was tring to find a example or doc about how to do it and I didn't
find. Maybe I didn't know where to search...

My problem is that I have a LWRP that need a Ruby library ( require
'sqlite3' ) and I don't know how to be sure that the library is
already installed.
Is there any way to install the package from the cookbook before the
provider (LWRP) be loaded?

Any pointers will help. I'm already trying at
$COOKBOOK/libraries/default.rb with no much luck. At least I don't
know how to call properly from there the 'package' provider.

Thanks :-)

-- 
Juanje



Archive powered by MHonArc 2.6.16.

§