- From: Jeremy Mauro <
>
- To: "
" <
>
- Subject: [chef] RE: Sharing Variables across Recipies
- Date: Mon, 27 Oct 2014 09:05:09 +0000
- Accept-language: fr-FR, en-US
Normally that what node attribute are for, otherwise if you want something
static you can use databags.
If you want more specific answer I think you should provide an example of
what you are looking for.
-----Original Message-----
From: Kamesh Sampath
[mailto:
Sent: samedi 25 octobre 2014 13:30
To:
Cc:
Subject: [chef] Sharing Variables across Recipies
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
Archive powered by MHonArc 2.6.16.