- From: Dorian Jaminais <
>
- To:
- Subject: [chef] run_context.include_recipe in a recipe within a role
- Date: Wed, 29 May 2013 12:26:29 +0200
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"The git cookbook is the one available at opscode.
I use this recipe in a variety of other internal cookbooks.
Here is my problem : when I add the cookbooks that use the LWRP directly to a node's run_list, it works perfectly but when I add them via a role, git is not installed. It works for the two other recipes included in the LWRP but not for git.
In the logs I have :
DEBUG: Loading Recipe git via include_recipe
DEBUG: Found recipe default in cookbook git
and then it goes to the next cookbook without the expected
INFO: Processing package[git] action install (base::default line 9)
I am running chef 11.4.4 on ubuntu 12.04 LTS
Do you guys have any ideas what is happening and how to solve this ?
--
Dorian JAMINAIS
System Administrator+33 6 95 10 95 37
- [chef] run_context.include_recipe in a recipe within a role, Dorian Jaminais, 05/29/2013
Archive powered by MHonArc 2.6.16.