Chef Design Patterns: environments


#1

Hi! Anyone have a design pattern for making cookbook environmentally
aware? I’m mostly concerned about data/attributes . . .

Thanks a lot!

Guy


#2

I wouldn’t do that… put your attributes in the environment and drive
the cookbook’s behavior that way.

In the past I have used feature flags in environments to toggle the
code path used by recipe code.

  • Julian

On Tue, Nov 26, 2013 at 10:15 AM, Guy Matz guymatz@gmail.com wrote:

Hi! Anyone have a design pattern for making cookbook environmentally aware?
I’m mostly concerned about data/attributes . . .

Thanks a lot!

Guy


[ Julian C. Dunn jdunn@aquezada.com * Sorry, I’m ]
[ WWW: http://www.aquezada.com/staff/julian * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]