- From: Kamesh Sampath <
>
- To:
- Cc:
- Subject: [chef] Sharing Variables across Recipies
- Date: Sat, 25 Oct 2014 16:59:57 +0530
I have situation in my cookbook where i extract some values form data_bags
and put them onto local variables on recipes after some manipulation of them.
I am running on to a situation where i need to repeat this logic across many
cookbooks as i see that when i do it in “default.rb” and then use them in
include_recipe’s I see chef complaining that the variable is undefined, am
not sure why so ideally when if I understand correctly all the recipes are
compiled on to a single class by chef during converge so conceptually they
should be visible.
Is there a way how i can share the variables declared in a recipe?
-Kamesh
- [chef] Sharing Variables across Recipies, Kamesh Sampath, 10/25/2014
Archive powered by MHonArc 2.6.16.