Learning Chef

Errata for Learning 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. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color Key: Serious Technical Mistake Minor Technical Mistake Language or formatting error Typo Question Note Update



Version Location Description Submitted By Date Submitted Date Corrected
Safari Books Online
http://techbus.safaribooksonline.com/9781491945087/_search_in_a_recipe_using_test_kitchen_html
Example 12-1

Example 12-1, the full listing of kitchen.yml, uses data_bags_path where it should use nodes_path. The paragraph immediately before appears correct when it says, "Edit the .kitchen.yml make sure you are using the chef_zero provisioner and our favorite basebox image as shown in Example 12-1. Notice there is a new addition to the provisioner: stanza, the nodes_path: provisioner: name: chef_zero nodes_path: ../../nodes nodes_path is a relative path pointing to the chef-playground/nodes directory we created with our test data in Chapter 11." However, example 12-1 does not match this, and has: provisioner: name: chef_zero data_bags_path: ../../nodes

Note from the Author or Editor:
Thanks, yes, it should be nodes_path.

Andy Cowell  Oct 15, 2014 
Safari Books Online
XXX
Example 16-4

Probably not fair to call it a mistake, but it appears this example is broken after a serverspec update. http://lists.opscode.com/sympa/arc/chef/2014-10/msg00027.html I was able to make the example work by changing from: include Serverspec::Helper::Exec ...to the following: set :backend, :exec

Note from the Author or Editor:
I was able to sneak in rewrites of the Serverspec section of Chapter 16 for v2 before final publication of the book. Should be appearing soon.

Andy Cowell  Oct 16, 2014 
PDF, ePub
Page 11
Note on top of page

Chef requires Administrator changes to run. should be: Administrator permissions...

Guntbert Reiter  Apr 30, 2014 
PDF, ePub
Page 12
Approx 4th paragraph - starts with "When chef-client is running in local...

"When chef-client is running in local mode, it simulates a full Chef Server instance in memory. Any data that would have been saved to a server is written to the local directory. The process of writing server data locally is called writeback. This is why client-client created the nodes/ directory. Local mode was designed for a new user to get up to speed quickly learning Chef." In the 4th sentence "client-client" should be "chef-client".

Jon Bidinger  Apr 18, 2014 
PDF, ePub
Page 14
3rd paragraph from the bottom

Line three contains a reference to a content attribute, specifying a string that should be written written to the file:... "written written"

Guntbert Reiter  Apr 30, 2014 
PDF, ePub
Page 17
center of page

What do it do? should probably be: What did it do?

Guntbert Reiter  Apr 30, 2014 
PDF
Page 48
command in the middle of the page

When I try to follow the procedure in chapter 4, after running the 'bundle exec kitchen converge default-centos-64' command from page 48, no cookbook is run (and so motd is not changed in the virtual machine). When I compare the log in the book to what I see on my machine, I see 'Berksfile, Cheffile, cookbooks/, or metadata.rb not found so Chef will run with effectively no cookbooks. Is this intended?' on my box.

Note from the Author or Editor:
Unfortunately, an in-progress revision of Chapter 4 was inadvertently published in a Rough Cut. I was in the middle of changing Chapter 4 to cover the Chef Development Kit and using a new training image available on https://vagrantcloud.com/learningchef/chefdk-box to make the install easier for readers. If you are Github-savvy look for an update over this weekend (Jun 7-8) for the chapter 4 source which provides a working example. And expect the chapter text to be updated soon here on Safari when the next round of Rough Cut changes are published, which is typically at the beginning of the month from what I'm told.

Jakub Vosahlo  Jun 03, 2014 
PDF
Page 49
Hashes paragraph

In PDF: prices[:oscar] = 1.00 prices.values #=> [4.55, 5.23, 4.65, 6.99] After the new affectation of :oscar prices.values should probably print prices.values #=> [1.00, 5.23, 4.65, 6.99]

Philippe ALEXANDRE  Apr 29, 2014 
PDF
Page 51
Remembering the order callout

I would suggest that the phrase: '"Equals" comes before "tilde" in the alphabet' be changed to: '"Equals" comes before "tilde" in the dictionary'

Anonymous  May 19, 2014 
PDF
Page 53
Methods, Classes, and Modules - Point 3

Moudles should probably read Modules

Philippe ALEXANDRE  Apr 29, 2014 
ePub
Page 53
1st paragraph

This sentence: What do it do? (Excerpt From: Seth Vargo and Mischa Taylor. Learning Chef. iBooks. ) Should be: "What did it do?"

Scott Girard  Jun 04, 2014 
PDF
Page 57
First bullet point

deloy should probably read deploy

Mark Collins  Apr 16, 2014 
PDF, ePub
Page 68
Deploying to Production with Enterprise Chef

The section 'Deploying to Production with Enterprise Chef' is duplicating the material that immediately precedes it. The instructions for registering for Enterprise Chef, downloading the Starter Kit, and testing the connection are addressed in both sections.

Note from the Author or Editor:
This chapter will be rewritten in the final version - it was pulled in from draft material written by Seth for the Rough Cut only.

Brian McNamara  Apr 28, 2014 
PDF, ePub
Page 77
2. Build the Node

Ohai is mentioned but only briefly explained. It may be helpful to provide more detail about what it is and how it gets installed.

Note from the Author or Editor:
Only part of the chapter was completed for the Rough Cut. The final version will cover ohai in more detail.

Brian McNamara  Apr 28, 2014 
PDF, Mobi
Page 82
first item of the first list

" kitchen init - add Text Kitchen support to a project" should be " kitchen init - add Test Kitchen support to a project".

Alessandro Andrioni  Aug 04, 2014 
ePub
Page 96
3rd sentence

The word "separate" is misspelled in the following sentence: "�Within this isolated environment, the virtualization system simulates that the operating system is running on seprate,...�

John Claus  Aug 13, 2014 
ePub
Page 97
1st paragraph

The word "separate" is also misspelled in the following sentence: "�Each isolated environment running a sepearte copy of an operating system...�

John Claus  Aug 13, 2014 
ePub
Page 97
3rd paragraph, last sentence

The following sentence: �The terms host and guest are a convenient way to be more specific about precisely environment we expect you to be using.� Should probably read as follows" �The terms host and guest are a convenient way to be more specific about precisely environment which we expect you to be using.�

John Claus  Aug 13, 2014 
ePub
Page 100
4th bullet point

The word "subdirectory" is misspelled in the following bullet point: �test/ - Directory structure containing tests (initially just a skeleton structure with the subirectory tree test/integration/default/)�

John Claus  Aug 13, 2014 
ePub
Page 108
2nd paragraph

“prices.values #=> [1.00, 5.23, 4.65, 6.99]” should be: “prices.values #=> [4.55, 5.23, 4.65, 6.99]”

Note from the Author or Editor:
You are correct, thank you!

gonzalo vilaseca  Sep 05, 2014 
PDF
Page 154
Last paragraph

The first sentence reads 'With On-Premise Enterprise Chef, you to manage up to 5 nodes for free, ...' It should be updated to 'With On-Premise Enterprise Chef, you can manage up to 5 nodes for free, ...'

Brian McNamara  Sep 04, 2014 
PDF
Page 154
Last paragraph

The first sentence reads 'With On-Premise Enterprise Chef, you to manage up to 5 nodes for free, ...' It should be updated to 'With On-Premise Enterprise Chef, you can manage up to 5 nodes for free, ...'

Brian McNamara  Sep 04, 2014 
ePub
Page 242
2nd paragraph

“Run the exit command to get back to the host prompt, then run kitchen destroy default-centos-65” Should be: “Run the exit command to get back to the host prompt, then run kitchen destroy default-centos65” (default-centos65 without the hyphen between centos and 65

gonzalo vilaseca  Sep 05, 2014