Information Technology Reference
In-Depth Information
Linux/Mac OS X:
$ mkdir -p chef-repo/cookbooks
$ cd chef-repo/cookbooks
Windows:
$ mkdir chef-repo\cookbooks
$ cd chef-repo\cookbooks
Now generate the chef-server cookbook with chef generate cookbook or knife cook-
book create , depending on whether you are using the Chef Development Kit or the Chef
Client, respectively. Also, enable the cookbook to use Test Kitchen. We're going to go
through the cookbook creation steps quickly in this chapter. If you need a refresher on what
each of these commands mean and the expected output, refer back to Chapter 7 .
Chef Development Kit:
$ chef generate cookbook chef-server
$ cd chef-server
Chef Client:
$ knife cookbook create chef-server --cookbook-path .
$ cd chef-server
$ kitchen init --create-gemfile
$ bundle install
Edit the .kitchen.yml file to use the CentOS 6.5 basebox we prepared specifically for this
book. Also, assign a private network address like we did in Chapter 7 . This time, we're going
to use the IP address 192.168.33.36. If this conflicts with an address already being used on
your local network, change it to be a nonconflicting one. We also need more memory than
the default 512 MB Test Kitchen allocates, so add a customize: block with a memory: state-
ment to increase the memory to 1.5 GB (memory is specified in megabytes only).
Search WWH ::




Custom Search