Information Technology Reference
In-Depth Information
provisioner :
name : chef_zero
platforms :
- name : centos65
driver :
box : learningchef / centos65
box_url : learningchef / centos65
network :
- [ "private_network" , { ip : "192.168.33.38" } ]
suites :
- name : default
run_list :
- recipe [ apache - test :: default ]
attributes :
Make sure there are no syntax errors in your .kitchen.yml by running kitchen converge :
$ kitchen converge
Create a default recipe with the same code we used in Chapter 7 .
Example 16-2. chefdk/apache-test/recipes/default.rb
#
# Cookbook Name:: apache-test
# Recipe:: default
#
# Copyright (C) 2014
#
#
#
package "httpd"
service "httpd" ddo
action [ :enable , :start ]
end
end
template "/var/www/html/index.html" ddo
source 'index.html.erb'
mode '0644'
end
end
Search WWH ::




Custom Search