[chef] Re: Re: Passive recipes


Chronological Thread 
  • From: Dan DeMaggio < >
  • To:
  • Subject: [chef] Re: Re: Passive recipes
  • Date: Tue, 13 Oct 2009 16:23:25 -0400

On Wed, Oct 7, 2009 at 6:04 PM, Garret Heaton 
< >
 wrote:
> 1)  [...]
> This also means that you couldn't use the apache cookbook
> on a system which didn't have the collectd cookbook.

Exactly, but I want my recipes to be modular.

> 2) Check the node's variables in the collectd config templates and only
> enable the config you need.
> <% if @node[:mysql] -%>

The problem is that you have no idea if the MySQL recipe is called or
not .. You only have the attributes, which are always defined. So you
will always copy the collectd-mysql config file, even if MySQL is not
going to be installed.

> Would love to have a better solution to this problem.

Looks like light weight resources/providers might help, but I'm still
trying to wrap my head around them.

-=Dan=-



Archive powered by MHonArc 2.6.16.

§