Information Technology Reference
In-Depth Information
$
chef generate cookbook motd
Compiling Cookbooks...
Recipe: code_generator::cookbook
* directory[/Users/misheska/learningchef/motd] action create
- create new directory /Users/misheska/learningchef/motd
...
* template[/Users/misheska/learningchef/motd/recipes/default.rb] action create
- create new file /Users/misheska/learningchef/motd/recipes/default.rb
- update content in file /Users/misheska/learningchef/motd/recipes/default
.rb from none to 9cc885
(diff output suppressed by config)
Make the
motd
directory you just created the current directory:
$
cd motd
As demonstrated in Example 7-1, modify the
.kitchen.yml
file to use the CentOS 6 image
we've tailored for the topic.
Example 7-1. chefdk/motd/.kitchen.yml
---
driver
:
name
:
vagrant
provisioner
:
name
:
chef_zero
platforms
:
-
name
:
centos65
driver
:
box
:
learningchef
/
centos65
box_url
:
learningchef
/
centos65
suites
:
-
name
:
default
run_list
:
-
recipe
[
motd
:
:default
]
attributes
: