Created
October 11, 2013 14:41
-
-
Save mkherlakian/6935844 to your computer and use it in GitHub Desktop.
Revisions
-
mkherlakian created this gist
Oct 11, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,53 @@ 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 ``` ```ruby 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 ```