[chef] Re: Re: run_context.include_recipe in a recipe within a role


Chronological Thread 
  • From: Daniel DeLeo < >
  • To:
  • Subject: [chef] Re: Re: run_context.include_recipe in a recipe within a role
  • Date: Wed, 29 May 2013 09:14:29 -0700


On Wednesday, May 29, 2013 at 9:06 AM, Dorian Jaminais wrote:

I am still tracking down my problem and I have some news.
It appears that he problem is not specific to the git cookbook.
Indeed it appears that all recipes included in a LWRP 'run_context.include_recipe' is only really added to the run_list if the LWRP is called once during the run_list.

If the LWRP is called more than once, it tells me that the resource has already been added to the run_list even if it has not.

Is this a known bug ? I am doing something wrong ?
I am failing to find any clues using my google-fu so I am turning to your expertise.


2013/5/29 Dorian Jaminais < " target="_blank"> >
Hi everyone

I am having trouble with LWRP, include_recipe and roles.

I have a LWRP that includes some cookbooks :
    run_context.include_recipe "git"
    run_context.include_recipe "internal-cookbook"
    run_context.include_recipe "build-essential"



This is a bit odd. Why does the LWRP do this instead of a recipe? Showing more code, log output, and explaining why you're doing things this way would help others to understand your issue better.

-- 
Daniel DeLeo



Archive powered by MHonArc 2.6.16.

§