Information Technology Reference
In-Depth Information
NOTE
Make sure you use the
chef_solo
provisioner for this cookbook, as the in-memory Chef
Server that the
chef_zero
provisioner spawns will cause a conflict with the hands-on ex-
ercises coming up in
Chapter 10
.
As of this writing, if you want to automate the installa-
tion of a Chef Server with Chef cookbooks, the use of Chef Solo is recommended so that
the deployment code doesn't get confused by the presence of the in-memory Chef Server
used in Chef Zero.
Example A-1. /chefdk/chef-repo/cookbooks/chef-server/.kitchen.yml
---
driver
:
name
:
vagrant
provisioner
:
name
:
chef_solo
platforms
:
-
name
:
centos65
driver
:
box
:
learningchef
/
centos65
box_url
:
learningchef
/
centos65
network
:
- [
"private_network"
, {
ip
:
"192.168.33.36"
}
]
suites
:
-
name
:
default
run_list
:
-
recipe
[
chef
-
server
:
:default
]
attributes
:
Generate a default attributes file in
attributes/default.rb
.
Chef Development Kit:
$
chef generate attribute default
Chef Client:
$
touch attributes/default.rb