Information Technology Reference
In-Depth Information
},
"motd" : {
"message" : "Developers, developers, developers!"
}
}
}
Add a new dev suite to chef-zero/cookbooks/apache/.kitchen.yml as shown in
Example 15-13 . It's in the same format as our prod instance—it just uses the dev environ-
ment and the IP address 192.168.33.16 .
Example 15-13. chefdk/chef-zero/cookbooks/apache/.kitchen.yml
---
driver :
name : vagrant
provisioner :
name : chef_zero
environments_path : . . /. . / environments
roles_path : . . /. . /. roles
platforms :
- name : centos65
driver :
box : learningchef / centos65
box_url : learningchef / centos65
suites :
- name : prod
provisioner :
client_rb :
environment : production
driver :
network :
- [ "private_network" , { ip : "192.168.33.15" } ]
run_list :
- recipe [ apache : :default ]
attributes :
- name : dev
provisioner :
client_rb :
environment : dev
driver :
network :
Search WWH ::




Custom Search