Tag Chef

Beware: deleteing a file in Chef doesn't actually delete it

Why you should explicitly add backup false when deleteing a file through Chef, to avoid leaving potentially sensitive files still on the box.

Morsels of Goodness: What's Cooking in Chef 14?

A look at the new features coming in the new Chef 14 release, as well as what to watch out for when upgrading.

Bundling Common Rake Tasks into a Gem

An example of how to create a helper gem for common Rake task, using the real-world example of Chef cookbooks.

Running docker login as another user in Chef

Hitting the error permission denied while trying to connect to the Docker daemon socket when trying to run docker login as a non-root user in Chef.

Chef 13 Upgrade: knife-cookbook-doc Rubocop Updates

Disabling the Missing space after # and Do not use block comments errors for your knife-cookbook-doc formatted comments.

Chef 13 Upgrade: Deprecation of Namespace Collisions in Custom Resources

Preparing for breaking changes in Chef 14 by renaming property_name to new_resource.property_name in Custom Resources.

Chef 13 Upgrade: knife-cookbook-doc gem upgrade

Fixing odd Logger entries in autogenerated knife-cookbook-doc README.mds for Chef 13.

Testing Chef's ruby_blocks with ChefSpec

Testing implementation of a ruby_block in ChefSpec, to ensure that the code executes as expected.

Chef 13 Upgrade: Lessons Learnt and Documented for Posterity

Notes on the main problems encountered when upgrading from Chef 12 to Chef 13, both with ChefSpec and Rubocop.

Chef 13 Upgrade: Rubocop Changes for Testing render_file with ChefSpec and a with_content Block

How to resolve the Parenthesize the param render_file Rubocop error when upgrading your cookbook to Chef 13.