- From: Zac Stevens <
>
- To:
- Subject: [chef] Re: Re: Re: How to add ruby lib as depend at LWRP
- Date: Tue, 13 Dec 2011 15:55:21 +0000
Hi,
2011/12/13 Juan Jesús Ojeda Croissier
<
>:
>
On Tue, Dec 13, 2011 at 1:08 PM, Bryan Berry
>
<
>
>
wrote:
>
> # at beginning of lwrp
>
> f = package "foo" do
>
> action :install
>
> end
>
> f.run_action(:install)
>
>
>
> this might trigger the install action immediately
>
>
Like that, doesn't work, but I think is good start. After some tries I got:
Bryan's advice is basically correct, but you will also need to reload
Gem's cache. See this article for information:
http://www.opscode.com/blog/2009/06/01/cool-chef-tricks-install-and-use-rubygems-in-a-chef-run/
If you are trying this and it doesn't work, could you please include
more information about how it fails? The right solution should not be
so complicated as to manually create a RunContext in your recipes.
Zac
Archive powered by MHonArc 2.6.16.