Your SlideShare is downloading. ×
Cook like a Chef
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Cook like a Chef

1,501

Published on

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

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,501
On Slideshare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
35
Comments
1
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Cook like a ChefWho? Ian YangFrom? Intridea Inc.When? December 20, 2011
  • 2. Contents1 What is Chef2 How Chef Works3 How to Use Chef4 Example
  • 3. Outline1 What is Chef2 How Chef Works3 How to Use Chef4 Example
  • 4. What is Chefa person who cooksprofessionally
  • 5. What is Chefan open-source systemintegration framework thatcooks your serversprofessionally
  • 6. Figure: What is Chef from Chef Wiki
  • 7. Outline1 What is Chef2 How Chef Works3 How to Use Chef4 Example
  • 8. Figure: Arch Intro from Chef Wiki
  • 9. Componentschef Gem of client/solo run-time and CLI tools.
  • 10. Components chef Gem of client/solo run-time and CLI tools.chef-server Gem of server run-time
  • 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. 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. Solo Workflow1 Collect Node info (ohai)
  • 14. Solo Workflow1 Collect Node info (ohai)2 Get Node configuration data
  • 15. Solo Workflow1 Collect Node info (ohai)2 Get Node configuration data3 Run specified Recipes with Node info and configuration data
  • 16. RecipesRecipes configuration steps by Resources
  • 17. Recipes Recipes configuration steps by ResourcesResources cross platform abstraction of tasks
  • 18. Recipes Recipes configuration steps by ResourcesResources cross platform abstraction of tasks Providers actually execute the Resources
  • 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. Outline1 What is Chef2 How Chef Works3 How to Use Chef4 Example
  • 21. Start from Chef Repo1 gem install chef2 gh clone opscode chef - repo
  • 22. Read existing CookbooksFigure: Opscode Community http://community.opscode.com/
  • 23. CookbookDefinition Collection of Attributes
  • 24. CookbookDefinition Collection of Attributes Recipes
  • 25. CookbookDefinition Collection of Attributes Recipes Files & Templates
  • 26. CookbookDefinition Collection of Attributes Recipes Files & Templates Definitions & Providers
  • 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. Wait... knife throwserrorsCreate a knife config in chefrepoFollow gist 1501318
  • 29. Try Chef using chef-solo1 chef - solo -c config - file -j configuration - data . json
  • 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. Outline1 What is Chef2 How Chef Works3 How to Use Chef4 Example
  • 32. cnintridea previewProvision vbox using vagrantInstall git, rbenv, ruby, bundlerInstall and config nginxDaemonize and monit rakewatch

×