php - Where does `recipe` hash come from in chef? -


to use php-fpm use code.

$ knife cookbook create ppa $ vi site-cookbooks/ppa/recipes/default.rb  apt_repository "nginx-php"   uri "http://ppa.launchpad.net/nginx/php5/ubuntu"   distribution node['lsb']['codename']   components ["main"]   keyserver "keyserver.ubuntu.com"   key "c300ee8c" end 

http://community.opscode.com/cookbooks/apt

and added recipe[apt] runlist.

i want know come recipe hash. keys same directories of cookbooks?

i don't know when these directories created.

the pattern follows

recipe[cookbook_name::recipe_name] 

a short hand recipe[cookbook_name::default] is

recipe[cookbook_name] 

the cookbook_name name defined in each cookbook's metadata.rb file. cannot assume directory name same cookbook name.

the recipe_name the name of file in recipes directory sans .rb extension.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -