[chef] Chef find out parent cookbook in dependency


Chronological Thread 
  • From: M G < >
  • To: " " < >
  • Subject: [chef] Chef find out parent cookbook in dependency
  • Date: Thu, 18 Jun 2015 09:20:19 -0700
  • Importance: Normal

Hi 

Lets say I have cookbook  base and 2 cookbooks child1 and child 2

In cookbook child1s recipe , I include base in the following manner:

child1/recipes/default.rb

include_recipe "base"

The same setup for child2's default recipe

Now in base, is there a way to find out which is the calling cookbook child1 or child2?

Regards

mg



Archive powered by MHonArc 2.6.16.

§