Chef Design Patterns: environments

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

Thanks a lot!

Guy

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: Julian Dunn's Blog - Commentary on media, technology, and everything in between. * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]