- From: Lamont Granquist <
>
- To: Bráulio Bhavamitra <
>
- Cc:
, chef <
>
- Subject: [chef] Re: Re: Re: Re: Introducing the httpd cookbook
- Date: Mon, 25 Aug 2014 08:44:46 -0700
Well the idea is that should be up to you. So you can write a
cookbook that wraps that and exposes the node data that your
organization needs and then you can wrap that with application
cookbooks that load up the node data if that makes sense to you.
Or else you can feed it from databags if you like (and using
databags to drive node data to drive LWRPs is a layer of
indirection that the databag-driven user does not need). Or else
you can just hard code it directly in the recipe because you
decide you don't need to search on that information. There's no
one best way to do that. But if node data makes sense to you,
then you've basically just written your wrapper cookbook there.
On 8/25/14, 8:22 AM, Bráulio Bhavamitra wrote:
"
type="cite">
But why left node values forgotten? LWRP can be
used with node values, for example:
node[:httpd][:services].each do |service|
httpd_service do
service.each{ |key, value| send key, value }
end
end
Also, the provider could have a way to specify how node
attributes should fill LWRP
cheers,
bráulio
|
- [chef] Introducing the httpd cookbook, Sean OMeara, 08/22/2014
- [chef] Re: Introducing the httpd cookbook, Sean OMeara, 08/22/2014
- [chef] Re: Introducing the httpd cookbook, Durfee, Bernie (GE Global Research), 08/22/2014
- [chef] Re: Introducing the httpd cookbook, Bráulio Bhavamitra, 08/22/2014
- [chef] Re: Re: Introducing the httpd cookbook, Lamont Granquist, 08/22/2014
- [chef] Re: Re: Re: Introducing the httpd cookbook, Adam Jacob, 08/22/2014
- [chef] Re: Re: Re: Re: Introducing the httpd cookbook, Lamont Granquist, 08/22/2014
- [chef] Re: Re: Re: Re: Introducing the httpd cookbook, Bráulio Bhavamitra, 08/25/2014
- [chef] Re: Re: Re: Re: Re: Re: Introducing the httpd cookbook, Bráulio Bhavamitra, 08/25/2014
- [chef] Re: Re: Re: Re: Re: Re: Re: Introducing the httpd cookbook, Jesse Nelson, 08/25/2014
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Introducing the httpd cookbook, Sean OMeara, 08/25/2014
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: Introducing the httpd cookbook, Bráulio Bhavamitra, 08/25/2014
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Introducing the httpd cookbook, Adam Leff, 08/25/2014
Archive powered by MHonArc 2.6.16.