Testing Chef 11 with Vagrant

Chef 11 has come out, and possibly broken a bunch of your carefully crafted cookbooks. How are you going to test them, though? Here's one way, using chef-solo via Vagrant. Requirements RVM (or rbenv, but this will use RVM) You're using RVM or rbenv to manage your rubies, right? If…

Cleaner Chef Environment Files with Ruby

The problem The syntax used in all the examples of chef environment files have something similar to the following: "default_attributes": { "apache": { "prefork": { "startservers": "30", "minspareservers": "5", "maxspareservers": "30", "serverlimit": "65", "maxclients": "60", "maxrequestsperchild": "1000" } } }, "override_attributes": { } This gets really really unwieldy, really quickly when you have over a thousand…