Information Technology Reference
In-Depth Information
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
Modify the
.kitchen.yml
file to use the CentOS 6 image we've tailored for the topic as seen in
Example 7-4. knife/motd/.kitchen.yml
---
driver
:
name
:
vagrant
provisioner
:
name
:
chef_solo
platforms
:
-
name
:
centos65
driver
:
box
:
learningchef
/
centos65
box_url
:
learningchef
/
centos65
suites
:
-
name
:
default
run_list
:
-
recipe
[
motd
:
:default
]
attributes
:
Check to make sure there are no syntax errors in your
kitchen.yml
file by running
kitchen
list
. If you see a stack trace error instead of the following output, you likely made a typo,
inadvertently used tabs instead of spaces, or didn't line up entries correctly:
$
kitchen list
Instance Driver Provisioner Last Action
default-centos65 Vagrant ChefSolo <Not Created>
Because you will be copying a file from the cookbook
files/
subdirectory to the Chef node,
you will need to create the file as well. Again, with your handy programmer's text editor,
create the file
files/default/motd
in your
motd-knife
cookbook. When a cow udders your
message of the day (pun intended), any day becomes a celebration. Liven up your message
with some ASCII art.
Example 7-5. knife/motd/files/default/motd