Cook like a ChefWho?    Ian YangFrom?   Intridea Inc.When?   December 20, 2011
Contents1   What is Chef2   How Chef Works3   How to Use Chef4   Example
Outline1   What is Chef2   How Chef Works3   How to Use Chef4   Example
What is Chefa person who cooksprofessionally
What is Chefan open-source systemintegration framework thatcooks your serversprofessionally
Figure: What is Chef from Chef Wiki
Outline1   What is Chef2   How Chef Works3   How to Use Chef4   Example
Figure: Arch Intro from Chef Wiki
Componentschef Gem of client/solo run-time     and CLI tools.
Components     chef Gem of client/solo run-time            and CLI tools.chef-server Gem of server run-time
Components     chef Gem of client/solo run-time            and CLI tools.chef-server Gem of server run-time Chef Repo Blan...
Components     chef Gem of client/solo run-time            and CLI tools.chef-server Gem of server run-time Chef Repo Blan...
Solo Workflow1   Collect Node info (ohai)
Solo Workflow1   Collect Node info (ohai)2   Get Node configuration data
Solo Workflow1   Collect Node info (ohai)2   Get Node configuration data3   Run specified Recipes with    Node info and config...
RecipesRecipes configuration steps by       Resources
Recipes  Recipes configuration steps by          ResourcesResources cross platform abstraction of          tasks
Recipes  Recipes configuration steps by           ResourcesResources cross platform abstraction of           tasks Provider...
Git Recipe1   case node [: platform ] # node info2   when " debian " , " ubuntu "3     # package is a resource4     packag...
Outline1   What is Chef2   How Chef Works3   How to Use Chef4   Example
Start from Chef Repo1 gem install chef2 gh clone opscode chef - repo
Read existing CookbooksFigure: Opscode Community   http://community.opscode.com/
CookbookDefinition Collection of          Attributes
CookbookDefinition Collection of          Attributes          Recipes
CookbookDefinition Collection of          Attributes          Recipes          Files & Templates
CookbookDefinition Collection of          Attributes          Recipes          Files & Templates          Definitions & Prov...
Use knife1   knife cookbook site search nginx2   knife cookbook site install nginx3   knife cookbook site download nginx  ...
Wait... knife throwserrorsCreate a knife config in chefrepoFollow gist 1501318
Try Chef using                chef-solo1   chef - solo -c config - file -j configuration - data      . json
json sample1   {2       " rbenv ": {3          " rubies ": [ " 1.9.2 - p290 "],4          " gems ": [ " bundler "]5       ...
Outline1   What is Chef2   How Chef Works3   How to Use Chef4   Example
cnintridea previewProvision vbox using vagrantInstall git, rbenv, ruby, bundlerInstall and config nginxDaemonize and monit ...
Upcoming SlideShare
Loading in...5
×

Cook like a Chef

1,541

Published on

Demonstrate how to use chef, the open source system integration framework.

1 Comment
0 Likes
Statistics
Notes
  • blessing_11111@yahoo.com

    My name is Blessing
    i am a young lady with a kind and open heart,
    I enjoy my life,but life can't be complete if you don't have a person to share it
    with. blessing_11111@yahoo.com

    Hoping To Hear From You
    Yours Blessing
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

No Downloads
Views
Total Views
1,541
On Slideshare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
36
Comments
1
Likes
0
Embeds 0
No embeds

No notes for slide

Cook like a Chef

  1. 1. Cook like a ChefWho? Ian YangFrom? Intridea Inc.When? December 20, 2011
  2. 2. Contents1 What is Chef2 How Chef Works3 How to Use Chef4 Example
  3. 3. Outline1 What is Chef2 How Chef Works3 How to Use Chef4 Example
  4. 4. What is Chefa person who cooksprofessionally
  5. 5. What is Chefan open-source systemintegration framework thatcooks your serversprofessionally
  6. 6. Figure: What is Chef from Chef Wiki
  7. 7. Outline1 What is Chef2 How Chef Works3 How to Use Chef4 Example
  8. 8. Figure: Arch Intro from Chef Wiki
  9. 9. Componentschef Gem of client/solo run-time and CLI tools.
  10. 10. Components chef Gem of client/solo run-time and CLI tools.chef-server Gem of server run-time
  11. 11. Components chef Gem of client/solo run-time and CLI tools.chef-server Gem of server run-time Chef Repo Blank repo template
  12. 12. Components chef Gem of client/solo run-time and CLI tools.chef-server Gem of server run-time Chef Repo Blank repo templateCommunity Cookbooks hosting site
  13. 13. Solo Workflow1 Collect Node info (ohai)
  14. 14. Solo Workflow1 Collect Node info (ohai)2 Get Node configuration data
  15. 15. Solo Workflow1 Collect Node info (ohai)2 Get Node configuration data3 Run specified Recipes with Node info and configuration data
  16. 16. RecipesRecipes configuration steps by Resources
  17. 17. Recipes Recipes configuration steps by ResourcesResources cross platform abstraction of tasks
  18. 18. Recipes Recipes configuration steps by ResourcesResources cross platform abstraction of tasks Providers actually execute the Resources
  19. 19. Git Recipe1 case node [: platform ] # node info2 when " debian " , " ubuntu "3 # package is a resource4 package " git - core "5 else6 package " git "7 end
  20. 20. Outline1 What is Chef2 How Chef Works3 How to Use Chef4 Example
  21. 21. Start from Chef Repo1 gem install chef2 gh clone opscode chef - repo
  22. 22. Read existing CookbooksFigure: Opscode Community http://community.opscode.com/
  23. 23. CookbookDefinition Collection of Attributes
  24. 24. CookbookDefinition Collection of Attributes Recipes
  25. 25. CookbookDefinition Collection of Attributes Recipes Files & Templates
  26. 26. CookbookDefinition Collection of Attributes Recipes Files & Templates Definitions & Providers
  27. 27. Use knife1 knife cookbook site search nginx2 knife cookbook site install nginx3 knife cookbook site download nginx http://wiki.opscode.com/ display/chef/Cookbook+Site+Help
  28. 28. Wait... knife throwserrorsCreate a knife config in chefrepoFollow gist 1501318
  29. 29. Try Chef using chef-solo1 chef - solo -c config - file -j configuration - data . json
  30. 30. json sample1 {2 " rbenv ": {3 " rubies ": [ " 1.9.2 - p290 "],4 " gems ": [ " bundler "]5 },6 " run_list ": [ " recipe [ rbenv ]" ,7 " recipe [ nodejs ]"]8 }
  31. 31. Outline1 What is Chef2 How Chef Works3 How to Use Chef4 Example
  32. 32. cnintridea previewProvision vbox using vagrantInstall git, rbenv, ruby, bundlerInstall and config nginxDaemonize and monit rakewatch
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×