Cook like a Chef
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

Cook like a Chef

  • 1,977 views
Uploaded on

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

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

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
  • 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
    Are you sure you want to
    Your message goes here
    Be the first to like this
No Downloads

Views

Total Views
1,977
On Slideshare
1,956
From Embeds
21
Number of Embeds
2

Actions

Shares
Downloads
35
Comments
1
Likes
0

Embeds 21

http://hubot-clb-2081983768.ap-northeast-1.elb.amazonaws.com 19
http://www.linkedin.com 2

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