[chef] Re: Include a Recipe in a Provider


Chronological Thread 
  • From: Joshua Timberman < >
  • To:
  • Subject: [chef] Re: Include a Recipe in a Provider
  • Date: Thu, 29 Dec 2011 12:31:12 -0700

Hello,

On Dec 29, 2011, at 12:04 PM, 
< >
 wrote:

> Is it possible to include a recipe in a provider? I have tried using the
> include_recipe function both inside the action definition and outside but it
> doesn't seem to be available that way.


No, include_recipe isn't available in cookbook providers/ directories.

You should include the recipe prior to using the provider in another recipe, 
or ensure it is added to the node's run list (or in a role).


-- 
Opscode, Inc
Joshua Timberman, Technical Program Manager
IRC, Skype, Twitter, Github: jtimberman




Archive powered by MHonArc 2.6.16.

§