- From: Daniel Condomitti <
>
- To: "
" <
>
- Cc: "
" <
>
- Subject: [chef] Re: Re: Using libraries in attributes file to fetch values from a service.
- Date: Fri, 22 Aug 2014 10:14:44 -0400
Is anyone aware of a way to load libraries from another cookbook without requiring a recipe from it? A depends statement isn't enough in metadata.rb to make them available in my experience. I usually just dump an empty recipe in the cookbook containing the library I want to use. Is this expected / designed behavior or should I fix it?
Dan
Sent from my iPhone On Aug 22, 2014, at 8:35 AM, Adam Jacob <
">
> wrote: What makes you think that? Libraries are loaded first - so go nuts! :)
Love,
Adam
On Aug 22, 2014 5:14 AM, "Tom Duckering" <
">
> wrote:
Hi,
I'm in an environment where secrets (i.e. passwords) are stored encrypted in an external service.
I'd like to be able to pull those values in and have them used by Chef.
I can write some nasty code in my attributes file to do it but I'd have to place that code in each attributes file since I understand that libraries are not available to attributes files.
Is there a better or right way to share some code for fetching and decoding these attributes?
Or does anyone have any other bright ideas? Alas I'm not at liberty to use encrypted data bags or chef server so this is all via chef-solo.
|
Archive powered by MHonArc 2.6.16.