Errata

Customizing Chef

Errata for Customizing Chef

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
, Other Digital Version Page 1
Throughout the book

In 'new' Safari (cannot check whether also true in 'old' Safari Books Online) the version of the book available is still the 'Early Release' version and contains a number of obvious errors which were presumably fixed before the paper book went to press. Surely the Safari book should have been updated to the release version now that it is nearly a year after publication?

Edmund Craske  Mar 03, 2015 
Printed Page 62
6th paragraph

Missing 'A' at 'nother key concept'.

Conor Owens  Apr 02, 2015 
Printed, PDF, ePub, Mobi, , Other Digital Version Page 206
United States

The code in both actions unconditionally calls

new_resource.updated_by_last_action(true)

This will send a notification that the resource has been updated even when none of the included internal resources is converged.

Chef Client finished, 1/3 resources updated

If you are using embedded resources you should not call updated_by_last_action and instead just include

use_inline_resources

which will do the correct thing. i.e. roll up notifications if the embedded resources are in fact converged during the run.

Akshay Kumar  Aug 30, 2014 
PDF Page 215
United States

::File.delete(current_file.file_name)

should be

::File.delete(current_resource.file_name)

Akshay Kumar  Sep 25, 2014 
Printed Page 237
Middle of code snippet

*The less than sign should be a greater than sign
#Check if the number of backups we want to keep is > 0
#Before trying to rotate
if @current_resource.num_backups < 0
…..

What happens when you run it using this logic is it assumes no rotation is needed and keeps overwriting the awesomeator.gz file and wont rotate
Changing it to

if @current_resource.num_backups > 0
…..

works fine and implements correct behavior.

Brian Doody  May 28, 2015