There are a couple of ways to fetch dependent cookbooks with Chef, one is with knife (which requires installing Knife) and the other manually. Since Zend Server only ahs 2 dependencies, manual download is easier.
Download the apt cookbook from http://community.opscode.com/cookbooks/apt and the yum cookbook from http://community.opscode.com/cookbooks/yum Then download the Zend Server cookbook from the repo:
http://community.opscode.com/cookbooks/zendserver
however if you have knife installed, you could fetch the deps also by using the command: knife cookbook site download apt knife cookbook site download yum knife cookbook site download zendserver
place them all in a "cookbooks" directory where your Vagrant file is, and then edit your vagrant file, in the Chef section:
so you end up with:
your_vagant_dir
VagrantFile
cookbooks
apt
yum
zendserver
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "./cookbooks/"
# chef.roles_path = "../my-recipes/roles"
# chef.data_bags_path = "../my-recipes/data_bags"
#These are the recipes we will run
chef.add_recipe "zendserver"
#Bootstrapping is optional - if you run into trouble, comment out the line below. This would only isntall ZS, but you will have to go through the welcome process.
chef.add_recipe "zendserver::bootstrapsingle"
# chef.add_role "web"
#
# # You may also specify custom JSON attributes:
chef.json = {
"zendserver" => {
"version" => "6.1",
# can be 5.3, or 5.4
"phpversion" => "5.4",
"ordernumber" => "YOUR_ORDER_NUMBER",
"licensekey" => "YOUR_LICENSE",
"apikeyname" => "choose_a_key",
"apikeysecret" =>"choose_a_secret_64_chars",
}
}
end