On Wed, Feb 27, 2013 at 6:05 PM, Andrea CampiIt would have to be a global attribute and the only established
< "> > wrote:
> What about making it opt-in / opt-out with an attribute?
> I don't much care which way the default is, but it would sure be nice to
> have the option.
pattern we have for that is Chef::Config options. These can kind of be
managed by templatizing the client.rb (e.g. chef-client cookbook) but
it's less of a "flag" than would be convenient for this sort of thing.
The reason it can't be a resource attribute is if you want it the
other way around, you're populating "auto_update true/false" in every
package resource in every cookbook if you want it the other way
around.
But yeah, it feels awesome. Of course the apt package provider should
help me with my apt-cache! We also felt it violates a Chef Law, but
none of us could name it.
Archive powered by MHonArc 2.6.16.