Information Technology Reference
In-Depth Information
$ chef generate cookbook apache
$ cd apache
Chef Client:
$ knife cookbook create apache --cookbook-path .
$ cd apache
$ kitchen init --create-gemfile
$ bundle install
Edit the .kitchen.yml to use CentOS image tailored for use in this topic.
NOTE
From this point forward, we'll provide listings only for the Chef Development Kit ver-
sions of the source files, and not Chef Client. There are no functional differences between
the two versions. You'll just notice that knife creates a few more file types by default
that aren't covered in this topic, and some of the comments are different. Having the extra
generated files doesn't hurt anything as they all are just blank stubs we won't be using.
Example 7-7. chefdk/apache/.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 [ apache : :default ]
attributes :
Search WWH ::




Custom Search